summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-10-17 22:53:00 +0200
committerChristian Poessinger <christian@poessinger.com>2020-10-17 22:53:00 +0200
commitce7cdb649a789cdc499666ac86cd6dac2445fc72 (patch)
tree085224bde2227810e064fb4e4dcf0179ca6e4ab1 /Jenkinsfile
parent3ab7b74f899e102849e28bb645769f42e57a77db (diff)
downloadvyos-build-ce7cdb649a789cdc499666ac86cd6dac2445fc72.tar.gz
vyos-build-ce7cdb649a789cdc499666ac86cd6dac2445fc72.zip
Jenkins: clean QEMU build files
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile28
1 files changed, 12 insertions, 16 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index dcbc8905..4f56bde7 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -152,9 +152,9 @@ pipeline {
}
}
}
- stage('Test ISO') {
+ stage('QEMU') {
parallel {
- stage('Without vyos-configd') {
+ stage('Testcases without vyos-configd') {
when {
expression { fileExists 'build/live-image-amd64.hybrid.iso' }
}
@@ -162,7 +162,7 @@ pipeline {
sh "sudo make test"
}
}
- stage('With vyos-configd') {
+ stage('Testcases with vyos-configd') {
when {
expression { fileExists 'build/live-image-amd64.hybrid.iso' }
}
@@ -170,14 +170,14 @@ pipeline {
sh "sudo make testd"
}
}
- }
- }
- stage('QEMU image') {
- when {
- expression { fileExists 'build/live-image-amd64.hybrid.iso' }
- }
- steps {
- sh "sudo make qemu"
+ stage('Build QEMU image') {
+ when {
+ expression { fileExists 'build/live-image-amd64.hybrid.iso' }
+ }
+ steps {
+ sh "sudo make qemu"
+ }
+ }
}
}
}
@@ -229,11 +229,7 @@ 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 '''
- if [ -d build ]; then
- sudo chmod -R 777 build/
- fi
- '''
+ sh 'sudo make purge'
deleteDir() /* cleanup our workspace */
}
}