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:
Aleksandar Todorov 2021-03-08 10:23:30 +02:00 committed by Alexander Todorov
parent c7adc9128a
commit b1fc31060f

View file

@ -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"
}