Create common files folder

Place nodepool, sahara-ci-syntax-check and update_pool
scripts to ci common files folder

Change-Id: I6faa696dbebc8814fbe2b87442afb713acf32a4b
This commit is contained in:
Denis Egorenko 2015-05-18 11:15:40 +03:00
parent a0b0592e3c
commit 76cf20083b
3 changed files with 5 additions and 3 deletions
config/nodepool
jenkins_job_builder
slave-scripts

@ -1,4 +1,4 @@
script-dir: /opt/ci/config/modules/openstack_project/files/nodepool/scripts/
script-dir: /opt/ci/files/nodepool-scripts
dburi: 'mysql://nodepool@localhost/nodepool'
cron:

@ -66,7 +66,7 @@
builders:
- gerrit-git-prep
- shell: "bash /opt/ci/jenkins-jobs/sahara-ci-syntax-check.sh"
- shell: "bash /opt/ci/files/sahara-ci-syntax-check.sh"
publishers:
- console-log
@ -118,4 +118,4 @@
- timed: '0 6 * * *'
builders:
- shell: "/opt/ci/jenkins-jobs/sahara-ci-config/slave-scripts/update_pool.sh"
- shell: "/opt/ci/files/update_pool.sh"

@ -20,3 +20,5 @@ sed "s%JENKINS_PUBLIC_KEY%$JENKINS_PUBLIC_KEY%g" -i $WORKSPACE/config/nodepool/s
NODEPOOL_SCRIPTS_DIR=$(sudo su - -c "cat /etc/nodepool/nodepool.yaml | grep 'script-dir:'" | awk '{print $2}')
cp $WORKSPACE/config/nodepool/scripts/* $NODEPOOL_SCRIPTS_DIR
cp $WORKSPACE/slave-scripts/update_pool.sh /opt/ci/files/