Skip to content

Commit

Permalink
Skip allocating jenkins node if skipping based on labels (#733)
Browse files Browse the repository at this point in the history
  • Loading branch information
andytson-inviqa authored Dec 9, 2022
1 parent 0893034 commit 67d9181
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ pipeline {
args '--group-add docker --entrypoint "" --volume /var/run/docker.sock:/var/run/docker.sock --volume "$HOME/.my127:/root/.my127"'
}
}
when { expression { return isHarnessChange(['base', 'drupal8', 'wordpress']) } }
when {
beforeAgent true
expression { return isHarnessChange(['base', 'drupal8', 'wordpress']) }
}
stages {
stage('Prepare') {
steps {
Expand Down Expand Up @@ -155,7 +158,10 @@ pipeline {
args '--group-add docker --entrypoint "" --volume /var/run/docker.sock:/var/run/docker.sock --volume "$HOME/.my127:/root/.my127"'
}
}
when { expression { return isHarnessChange(['symfony', 'magento2', 'magento1']) } }
when {
beforeAgent true
expression { return isHarnessChange(['symfony', 'magento2', 'magento1']) }
}
stages {
stage('Prepare') {
steps {
Expand Down Expand Up @@ -248,7 +254,10 @@ pipeline {
args '--group-add docker --entrypoint "" --volume /var/run/docker.sock:/var/run/docker.sock --volume "$HOME/.my127:/root/.my127"'
}
}
when { expression { return isHarnessChange(['spryker']) } }
when {
beforeAgent true
expression { return isHarnessChange(['spryker']) }
}
stages {
stage('Prepare') {
steps {
Expand Down

0 comments on commit 67d9181

Please sign in to comment.