diff --git a/modules/openstack_project/files/jenkins_job_builder/config/gerrit.yaml b/modules/openstack_project/files/jenkins_job_builder/config/gerrit.yaml index 91e6e57cc0..a4d757ba7f 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/gerrit.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/gerrit.yaml @@ -104,10 +104,7 @@ builders: - shell: | #!/bin/bash -xe - if [[ ! -d "gerrit"]] - then - mkdir gerrit - fi + mkdir -p gerrit cd gerrit /usr/local/jenkins/slave_scripts/gerrit-git-prep.sh https://review.openstack.org http://zuul.openstack.org git://git.openstack.org - shell: | @@ -146,10 +143,7 @@ builders: - shell: | #!/bin/bash -xe - if [[ ! -d "gerrit"]] - then - mkdir gerrit - fi + mkdir -p gerrit cd gerrit /usr/local/jenkins/slave_scripts/gerrit-git-prep.sh https://review.openstack.org http://zuul.openstack.org git://git.openstack.org - shell: | @@ -184,10 +178,7 @@ builders: - shell: | #!/bin/bash -xe - if [[ ! -d "gerrit"]] - then - mkdir gerrit - fi + mkdir -p gerrit cd gerrit /usr/local/jenkins/slave_scripts/gerrit-git-prep.sh https://review.openstack.org http://zuul.openstack.org git://git.openstack.org - shell: |