Don't check branch name when deciding if build was started by cron
because we already have cron jobs on multiple branches!
This commit is contained in:
parent
c7adc9128a
commit
b1fc31060f
1 changed files with 1 additions and 1 deletions
2
schutzbot/Jenkinsfile
vendored
2
schutzbot/Jenkinsfile
vendored
|
|
@ -960,7 +960,7 @@ void preserve_logs(test_slug) {
|
|||
void detect_build_cause() {
|
||||
def buildCause = currentBuild.getBuildCauses().get(0)
|
||||
|
||||
if ( buildCause.shortDescription == 'Started by timer' && env.BRANCH_NAME == 'main') {
|
||||
if ( buildCause.shortDescription == 'Started by timer' ) {
|
||||
return "cron"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue