summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-01-14 21:51:59 +0100
committerChristian Poessinger <christian@poessinger.com>2019-01-14 21:51:59 +0100
commit1c6bc54504da1d2ce52df1775c6c44ad11bd0e33 (patch)
treeb471478e8d90dda15215c611ec1b63cceb257964 /Jenkinsfile
parentf23cd2137e12ffcdeb4a60c2bd9698350d4b5fb1 (diff)
downloadvyos-build-1c6bc54504da1d2ce52df1775c6c44ad11bd0e33.tar.gz
vyos-build-1c6bc54504da1d2ce52df1775c6c44ad11bd0e33.zip
Jenkins: allow regular user to clean 'build/' directory
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index fc08eff2..32ddcd65 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -55,6 +55,9 @@ pipeline {
post {
always {
echo 'One way or another, I have finished'
+ // the 'build' directory got elevated permissions during the build
+ // cdjust permissions so it can be cleaned up by the regular user
+ sh 'sudo chmod -R 777 build/'
deleteDir() /* cleanup our workspace */
}
}