Skip to content

Commit

Permalink
readded build number and branch cond to check dep
Browse files Browse the repository at this point in the history
  • Loading branch information
ConstantinNicolai committed Oct 9, 2023
1 parent 4cd32d6 commit d86f480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ pipeline {
stage('Check Dependencies') {
when {
expression {
return ((currentBuild.getStartTimeInMillis() - currentBuild.previousBuild.getStartTimeInMillis()) > 2592000000000) //2592000000000 one month in milliseconds
return (((currentBuild.getStartTimeInMillis() - currentBuild.previousBuild.getStartTimeInMillis()) > 2592000000000) && (currentBuild.number > 1) && (env.BRANCH_NAME ==~ SNAPSHOT_BRANCH_REGEX)) //2592000000000 one month in milliseconds
}
}
steps {
Expand Down

0 comments on commit d86f480

Please sign in to comment.