diff options
author | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2016-09-15 15:47:09 +0200 |
---|---|---|
committer | Markos Chandras <mchandras@suse.de> | 2016-09-15 14:58:35 +0100 |
commit | 02a8f28965109c5c580f4764742382bc1df55762 (patch) | |
tree | 85828051a63ece361fe5d6f4d7b95a7a073d9811 /jjb | |
parent | bade843cdc7a2d6f8c55cfbc23deaa64a45090ab (diff) |
infra: Change the ownership of stuff back to jenkins
Change-Id: I869a2e44b78ed33e3419077c32f5c0a08b63191f
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'jjb')
-rwxr-xr-x | jjb/infra/openstack-bifrost-verify.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/jjb/infra/openstack-bifrost-verify.sh b/jjb/infra/openstack-bifrost-verify.sh index 42236f092..c17cb8861 100755 --- a/jjb/infra/openstack-bifrost-verify.sh +++ b/jjb/infra/openstack-bifrost-verify.sh @@ -11,6 +11,16 @@ set -o errexit set -o nounset set -o pipefail +trap fix_ownership EXIT + +function fix_ownership() { + if [ -z "${JOB_URL+x}" ]; then + echo "Not running as part of Jenkins. Handle the logs manually." + else + chown -R jenkins:jenkins $WORKSPACE + fi +} + # check distro to see if we support it # we will have centos and suse supported in future case "$DISTRO" in |