summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-01-05 20:56:27 +0100
committerChristian Poessinger <christian@poessinger.com>2022-01-05 20:56:27 +0100
commita8f279eb5abd2a10f3e452f151d35a0a72f549ac (patch)
tree5237dd6cd6a05b0ade9d3f4139d19bbd10ff72c0
parent17d8a6bf5bb53f427613bde49297d46c4038dda0 (diff)
downloadvyos-build-a8f279eb5abd2a10f3e452f151d35a0a72f549ac.tar.gz
vyos-build-a8f279eb5abd2a10f3e452f151d35a0a72f549ac.zip
Jenkins: delete build artifacts 'the old way' to prevent Jenkins CI error
-rw-r--r--Jenkinsfile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index a978747a..d4b505d8 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -181,7 +181,12 @@ pipeline {
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 make purge'
+ sh '''
+ #!/bin/bash
+ if [ -d build ]; then
+ sudo chmod -R 777 build/
+ fi
+ '''
deleteDir() /* cleanup our workspace */
}
}