From 5c24af09ecc8419ed1293a04dd42e19221f04d3b Mon Sep 17 00:00:00 2001
From: Renat Akhmerov <rakhmerov@mirantis.com>
Date: Tue, 24 Dec 2013 13:10:58 +0700
Subject: [PATCH] Adding configuration for python-mistralclient project

Change-Id: Iabcee106e58656353c7eed42aa8a457208fcc813
---
 .../files/gerritbot_channel_config.yaml       |  1 +
 .../jenkins_job_builder/config/projects.yaml  | 10 ++++++++
 .../openstack_project/files/zuul/layout.yaml  | 25 +++++++++++++++++++
 .../templates/review.projects.yaml.erb        |  5 ++++
 4 files changed, 41 insertions(+)

diff --git a/modules/gerritbot/files/gerritbot_channel_config.yaml b/modules/gerritbot/files/gerritbot_channel_config.yaml
index 7fa4cdd09d..9732c6046d 100644
--- a/modules/gerritbot/files/gerritbot_channel_config.yaml
+++ b/modules/gerritbot/files/gerritbot_channel_config.yaml
@@ -258,6 +258,7 @@ openstack-mistral:
       - x-vrif-minus-2
     projects:
       - stackforge/mistral
+      - stackforge/python-mistralclient
     branches:
       - master
 
diff --git a/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml b/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml
index f60b63fcf9..8232cf7028 100644
--- a/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml
+++ b/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml
@@ -22,6 +22,16 @@
       - python-jobs
       - pypi-jobs
 
+- project:
+    name: python-mistralclient
+    github-org: stackforge
+    node: precise
+    tarball-site: tarballs.openstack.org
+
+    jobs:
+      - python-jobs
+      - pypi-jobs
+
 - project:
     name: murano-api
     github-org: stackforge
diff --git a/modules/openstack_project/files/zuul/layout.yaml b/modules/openstack_project/files/zuul/layout.yaml
index 0f2a1bc15f..7ea5731502 100644
--- a/modules/openstack_project/files/zuul/layout.yaml
+++ b/modules/openstack_project/files/zuul/layout.yaml
@@ -413,6 +413,8 @@ jobs:
     voting: false
   - name: gate-mistral-python33
     voting: false
+  - name: gate-python-mistralclient-python33
+    voting: false
   - name: gate-murano-metadataclient-python33
     voting: false
   - name: gate-murano-common-python33
@@ -3114,6 +3116,29 @@ projects:
           - post-mirror-python27
           - post-mirror-python33
 
+  - name: stackforge/python-mistralclient
+    check:
+      - gate-python-mistralclient-pep8
+      - gate-python-mistralclient-python26
+      - gate-python-mistralclient-python27
+      - gate-python-mistralclient-python33
+      - gate-python-mistralclient-docs
+    gate:
+      - gate-python-mistralclient-pep8
+      - gate-python-mistralclient-python26
+      - gate-python-mistralclient-python27
+      - gate-python-mistralclient-docs
+    post:
+      - python-mistralclient-branch-tarball
+    pre-release:
+      - python-mistralclient-tarball
+    release:
+      - python-mistralclient-tarball:
+        - python-mistralclient-pypi-upload:
+          - post-mirror-python26
+          - post-mirror-python27
+          - post-mirror-python33
+
   - name: stackforge/MRaaS
     check:
       - gate-noop
diff --git a/modules/openstack_project/templates/review.projects.yaml.erb b/modules/openstack_project/templates/review.projects.yaml.erb
index 33abce7f9a..c7b5b6c4b7 100644
--- a/modules/openstack_project/templates/review.projects.yaml.erb
+++ b/modules/openstack_project/templates/review.projects.yaml.erb
@@ -598,6 +598,11 @@
 - project: stackforge/python-libraclient
 - project: stackforge/python-manilaclient
   upstream: git://github.com/bswartz/python-manilaclient.git
+- project: stackforge/python-mistralclient
+  description: Python client for Mistral REST API.
+  launchpad: mistral
+  upstream: git://github.com/rakhmerov/python-mistralclient.git
+  acl-config: /home/gerrit2/acls/stackforge/mistral.config
 - project: stackforge/python-muranoclient
   launchpad: murano
   upstream: git://github.com/Mirantis/python-muranoclient.git