mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
Jenkins: clean QEMU build files
This commit is contained in:
parent
3ab7b74f89
commit
ce7cdb649a
18
Jenkinsfile
vendored
18
Jenkinsfile
vendored
@ -152,9 +152,9 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Test ISO') {
|
stage('QEMU') {
|
||||||
parallel {
|
parallel {
|
||||||
stage('Without vyos-configd') {
|
stage('Testcases without vyos-configd') {
|
||||||
when {
|
when {
|
||||||
expression { fileExists 'build/live-image-amd64.hybrid.iso' }
|
expression { fileExists 'build/live-image-amd64.hybrid.iso' }
|
||||||
}
|
}
|
||||||
@ -162,7 +162,7 @@ pipeline {
|
|||||||
sh "sudo make test"
|
sh "sudo make test"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('With vyos-configd') {
|
stage('Testcases with vyos-configd') {
|
||||||
when {
|
when {
|
||||||
expression { fileExists 'build/live-image-amd64.hybrid.iso' }
|
expression { fileExists 'build/live-image-amd64.hybrid.iso' }
|
||||||
}
|
}
|
||||||
@ -170,9 +170,7 @@ pipeline {
|
|||||||
sh "sudo make testd"
|
sh "sudo make testd"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
stage('Build QEMU image') {
|
||||||
}
|
|
||||||
stage('QEMU image') {
|
|
||||||
when {
|
when {
|
||||||
expression { fileExists 'build/live-image-amd64.hybrid.iso' }
|
expression { fileExists 'build/live-image-amd64.hybrid.iso' }
|
||||||
}
|
}
|
||||||
@ -181,6 +179,8 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
script {
|
script {
|
||||||
@ -229,11 +229,7 @@ pipeline {
|
|||||||
echo 'One way or another, I have finished'
|
echo 'One way or another, I have finished'
|
||||||
// the 'build' directory got elevated permissions during the build
|
// the 'build' directory got elevated permissions during the build
|
||||||
// cdjust permissions so it can be cleaned up by the regular user
|
// cdjust permissions so it can be cleaned up by the regular user
|
||||||
sh '''
|
sh 'sudo make purge'
|
||||||
if [ -d build ]; then
|
|
||||||
sudo chmod -R 777 build/
|
|
||||||
fi
|
|
||||||
'''
|
|
||||||
deleteDir() /* cleanup our workspace */
|
deleteDir() /* cleanup our workspace */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user