jenkins: scripts: propose_update: Pass project directory as first argument

The sync_openstack_ansible_common_files.sh expects the OSA project to be
in the first argument. Fixes the following problem:

2017-06-07 12:23:50.415740 | + update openstack-ansible-galera_client
2017-06-07 12:23:50.415772 | + bash /usr/local/jenkins/slave_scripts/sync_openstack_ansible_common_files.sh
2017-06-07 12:23:50.418144 | /usr/local/jenkins/slave_scripts/sync_openstack_ansible_common_files.sh: line 20: 1: unbound variable

Change-Id: Ic64e7984b4ff888fa56b11239477834a0d972dfb
This commit is contained in:
Markos Chandras 2017-06-07 14:58:09 +01:00
parent 2ae704e5e4
commit b4f02248e0

View File

@ -74,7 +74,7 @@ elif [ "$OWN_PROJECT" == "openstack-ansible-tests" ] ; then
##### END OF WIP ########
#PROJECTS=$(./gen-projects-list.sh)
function update {
bash /usr/local/jenkins/slave_scripts/sync_openstack_ansible_common_files.sh
bash /usr/local/jenkins/slave_scripts/sync_openstack_ansible_common_files.sh $1
}
else
echo "Unknown project $1" >2