Skip to content

Commit

Permalink
use util function to determine if there are changes
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldietsch committed Nov 16, 2024
1 parent ad97f7b commit 0495a97
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Jenkinsfile.nightly
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pipeline {
stage('Check environment') {
when {
anyOf {
expression { return !currentBuild.changeSets.isEmpty() }
expression { return util.hasChanges(scmVars) }
triggeredBy cause: 'UserIdCause'
}
}
Expand All @@ -67,7 +67,7 @@ pipeline {
stage('Collect reference build') {
when {
anyOf {
expression { return !currentBuild.changeSets.isEmpty() }
expression { return util.hasChanges(scmVars) }
triggeredBy cause: 'UserIdCause'
}
}
Expand All @@ -80,7 +80,7 @@ pipeline {
stage('Build and run nightly tests') {
when {
anyOf {
expression { return !currentBuild.changeSets.isEmpty() }
expression { return util.hasChanges(scmVars) }
triggeredBy cause: 'UserIdCause'
}
}
Expand All @@ -106,7 +106,7 @@ pipeline {
expression { return currentBuild.result == 'SUCCESS' || currentBuild.result == 'UNSTABLE' }
branch 'dev'
anyOf {
expression { return !currentBuild.changeSets.isEmpty() }
expression { return util.hasChanges(scmVars) }
triggeredBy cause: 'UserIdCause'
}
}
Expand All @@ -123,7 +123,7 @@ pipeline {
when {
allOf {
branch 'dev'
expression { return !currentBuild.changeSets.isEmpty() }
expression { return util.hasChanges(scmVars) }
expression { return currentBuild.result == 'SUCCESS' || currentBuild.result == 'UNSTABLE' }
}
}
Expand Down

0 comments on commit 0495a97

Please sign in to comment.