From 70d1428322d154fb34314f0c5b9f92cf8b4d056e Mon Sep 17 00:00:00 2001 From: pcrews <gleebix@gmail.com> Date: Thu, 17 Jul 2014 07:51:37 -0700 Subject: [PATCH] Make jenkins user own /opt/git for tripleo-ci builds Altering the jjb configuration to set the current user as owner of /opt/git. This enables tripleo-ci to leverage the copies of openstack repos that live in that directory. Change-Id: Iebe3b5f194682e759266553b0f1e861f2958b048 --- .../files/jenkins_job_builder/config/tripleo.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/openstack_project/files/jenkins_job_builder/config/tripleo.yaml b/modules/openstack_project/files/jenkins_job_builder/config/tripleo.yaml index 5fdc7524ea..c35bcf8467 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/tripleo.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/tripleo.yaml @@ -21,6 +21,7 @@ export DIB_COMMON_ELEMENTS="common-venv stackuser pypi-openstack" export TRIPLEO_TEST=seed export USE_IRONIC=1 + sudo chown -hR $(whoami) /opt/git function gate_hook { bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh } @@ -61,6 +62,7 @@ export DIB_COMMON_ELEMENTS="common-venv stackuser pypi-openstack" export TRIPLEO_TEST=undercloud export USE_IRONIC=0 + sudo chown -hR $(whoami) /opt/git function gate_hook { bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh } @@ -101,6 +103,7 @@ export DIB_COMMON_ELEMENTS="common-venv stackuser pypi-openstack" export TRIPLEO_TEST=undercloud export USE_IRONIC=1 + sudo chown -hR $(whoami) /opt/git function gate_hook { bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh } @@ -141,6 +144,7 @@ export DIB_COMMON_ELEMENTS="common-venv stackuser pypi-openstack" export TRIPLEO_TEST=overcloud export USE_IRONIC=0 + sudo chown -hR $(whoami) /opt/git function gate_hook { bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh } @@ -180,6 +184,7 @@ export GEARDSERVER=192.168.1.1 export DIB_COMMON_ELEMENTS="common-venv stackuser pypi-openstack" export TRIPLEO_TEST=overcloud + sudo chown -hR $(whoami) /opt/git function gate_hook { bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh } @@ -220,6 +225,7 @@ export DIB_COMMON_ELEMENTS="common-venv stackuser pypi-openstack" export TRIPLEO_TEST=vlan export USE_IRONIC=1 + sudo chown -hR $(whoami) /opt/git function gate_hook { bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh }