summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-20 13:10:23 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-20 13:10:23 +0200
commitcc7c4fa155365348ad0277d0ca1660efbb4b18a8 (patch)
treef17df277eb7b58bab5f653cfbf6a3f68f66adbb5 /Jenkinsfile
parent5fc9c378b67c42ade369af315f1383861f00b269 (diff)
downloadvyos-build-cc7c4fa155365348ad0277d0ca1660efbb4b18a8.tar.gz
vyos-build-cc7c4fa155365348ad0277d0ca1660efbb4b18a8.zip
Jenkins: do not build ISO when only Docker container changes
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 4f72c7bc..2f38294c 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -165,6 +165,13 @@ pipeline {
}
stages {
stage('Build ISO') {
+ when {
+ not {
+ # No need to trigger a full ISO build when only the Docker
+ # container definition changes
+ changeset "**/docker/*"
+ }
+ }
steps {
script {
def commitId = sh(returnStdout: true, script: 'git rev-parse --short=11 HEAD').trim()
@@ -182,6 +189,13 @@ pipeline {
}
}
stage('Test ISO') {
+ when {
+ not {
+ # No need to trigger a full ISO test when only the Docker
+ # container definition changes
+ changeset "**/docker/*"
+ }
+ }
steps {
sh "sudo make test"
}