Merge "Install proposal scripts only when needed"

This commit is contained in:
Zuul
2018-02-15 16:28:14 +00:00
committed by Gerrit Code Review
4 changed files with 13 additions and 2 deletions
+11
View File
@@ -3,6 +3,17 @@
- name: Install git-review
command: pip install git-review
become: yes
- name: Copy scripts to the script dir on the node
copy:
dest: '{{ ansible_user_dir }}/scripts/'
src: '{{ item }}'
mode: 0755
with_items:
- generate_puppetfile.sh
- propose_update.sh
- sync_openstack_ansible_common_files.sh
roles:
- role: configure-git
git_config:
@@ -65,14 +65,14 @@ elif [ "$OWN_PROJECT" == "puppet-openstack-constraints" ] ; then
TOPIC="openstack/puppet/constraints"
PROJECTS=openstack/puppet-openstack-integration
function update {
bash /usr/local/jenkins/slave_scripts/generate_puppetfile.sh
bash /home/zuul/scripts/generate_puppetfile.sh
}
elif [ "$OWN_PROJECT" == "openstack-ansible-tests" ] ; then
INITIAL_COMMIT_MSG="Updated from OpenStack Ansible Tests"
TOPIC="openstack/openstack-ansible-tests/sync-tests"
PROJECTS=$(./gen-projects-list.sh)
function update {
bash /usr/local/jenkins/slave_scripts/sync_openstack_ansible_common_files.sh $1
bash /home/zuul/scripts/sync_openstack_ansible_common_files.sh $1
}
elif [ "$OWN_PROJECT" == "os-service-types" ] ; then
INITIAL_COMMIT_MSG="Updated from OpenStack Service Type Authority"