Skip to content

Commit

Permalink
reaadding condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ConstantinNicolai committed Nov 22, 2023
1 parent e7cd97a commit 1db5498
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ pipeline {
}

stage('Check Dependencies') {
// when {
// expression {
// if (currentBuild.number > 1) {
// return (((currentBuild.getStartTimeInMillis() - currentBuild.previousBuild.getStartTimeInMillis()) > 2592000000) && (env.BRANCH_NAME ==~ SNAPSHOT_BRANCH_REGEX)) //2592000000 30 days in milliseconds
// }
// return false
// }
// }
when {
expression {
if (currentBuild.number > 1) {
return (((currentBuild.getStartTimeInMillis() - currentBuild.previousBuild.getStartTimeInMillis()) > 2592000000) && (env.BRANCH_NAME ==~ SNAPSHOT_BRANCH_REGEX)) //2592000000 30 days in milliseconds
}
return false
}
}
steps {
script {
DOCKER_API.inside {
Expand Down

0 comments on commit 1db5498

Please sign in to comment.