builder.triggerForBranch(branch)
builder.emitTrigger(newJob)
}
- else {
+ else if (opt_level == 'full_opt') {
// Set a push trigger
TriggerBuilder builder = TriggerBuilder.triggerOnCommit()
builder.emitTrigger(newJob)
}
+ else {
+ // Set periodic trigger
+ Utilities.addPeriodicTrigger(newJob, '@daily')
+ }
}
}
}
builder.triggerForBranch(branch)
builder.emitTrigger(newJob)
}
- else {
+ else if (opt_level == 'full_opt' && pgo_optimized) {
// Set a push trigger
TriggerBuilder builder = TriggerBuilder.triggerOnCommit()
builder.emitTrigger(newJob)
}
+ else {
+ // Set periodic trigger
+ Utilities.addPeriodicTrigger(newJob, '@daily')
+ }
}
}
}
builder.triggerForBranch(branch)
builder.emitTrigger(newJob)
}
- else {
+ else if (opt_level == 'full_opt') {
// Set a push trigger
TriggerBuilder builder = TriggerBuilder.triggerOnCommit()
builder.emitTrigger(newJob)
}
+ else {
+ // Set periodic trigger
+ Utilities.addPeriodicTrigger(newJob, '@daily')
+ }
}
}
}