Skip to content

Commit

Permalink
chore(ci): Keep builds on Jenkins if certain branches were build (#2761)
Browse files Browse the repository at this point in the history
  • Loading branch information
mythsunwind authored Mar 4, 2024
1 parent c8e59af commit 1875400
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions AR-builder.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,16 @@ pipeline {
}
}
}

stage('Keep builds forever if important') {
steps {
script {
if (params.SOURCE_BRANCH.startsWith("release/") || params.SOURCE_BRANCH == "develop" || params.SOURCE_BRANCH == "main" || params.SOURCE_BRANCH == "prod") {
currentBuild.keepLog = true
}
}
}
}
}
}

Expand Down

0 comments on commit 1875400

Please sign in to comment.