Code Review
/
releng.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
infra: Change the ownership of stuff back to jenkins
[releng.git]
/
jjb
/
infra
/
openstack-bifrost-verify.sh
diff --git
a/jjb/infra/openstack-bifrost-verify.sh
b/jjb/infra/openstack-bifrost-verify.sh
index
42236f0
..
c17cb88
100755
(executable)
--- 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
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
# check distro to see if we support it
# we will have centos and suse supported in future
case "$DISTRO" in