summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile20
1 files changed, 12 insertions, 8 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 5ddcd88d..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,6 +170,14 @@ pipeline {
sh "sudo make testd"
}
}
+ stage('Build QEMU image') {
+ when {
+ expression { fileExists 'build/live-image-amd64.hybrid.iso' }
+ }
+ steps {
+ sh "sudo make qemu"
+ }
+ }
}
}
}
@@ -221,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 */
}
}