mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 03:50:31 +00:00
CI: Add "throttle" label and "skip_gate" capability
To make throttling by label fully active, the "throttle" option has to be specified with a specific label. You can now specify "skip_gate" in the Gerrit comments when you do a +2 code review to tell Jenkins not to actually run the gate. You'd do this if you plan to manually merge the change. Also updated the "printenv" debug output to better sort multi-line comments. Change-Id: I4c0b1085acec4805f2ca207eebac50aad81f27e2
This commit is contained in:
@@ -20,6 +20,8 @@ if (env.TIMEOUT_DAILIES) {
|
||||
|
||||
pipeline {
|
||||
options {
|
||||
ansiColor('gnome-terminal')
|
||||
throttle(['asterisk-daily'])
|
||||
timestamps()
|
||||
timeout(time: timeoutTime, unit: timeoutUnits)
|
||||
}
|
||||
@@ -41,7 +43,7 @@ pipeline {
|
||||
|
||||
stage ("Checkout") {
|
||||
sh "sudo chown -R jenkins:users ."
|
||||
sh "printenv | sort"
|
||||
sh "printenv -0 | sort -z | tr '\0' '\n'"
|
||||
sh "sudo tests/CI/setupJenkinsEnvironment.sh"
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user