Unverified Commit 5bfa8137 authored by Hongzhi (Steve), Chen's avatar Hongzhi (Steve), Chen Committed by GitHub
Browse files

[Misc] All overrun on master CI. (#5360)



* exclude_master

* fix

---------
Co-authored-by: default avatarUbuntu <ubuntu@ip-172-31-28-63.ap-northeast-1.compute.internal>
parent e41ce0c6
...@@ -240,12 +240,14 @@ pipeline { ...@@ -240,12 +240,14 @@ pipeline {
stage('Abort Previous CI') { stage('Abort Previous CI') {
steps { steps {
script { script {
// https://www.jenkins.io/doc/pipeline/steps/pipeline-milestone-step/ if (env.BRANCH_NAME != "master") {
// Note: incorrect "success" status might be shown for the old // Jenkins will abort an older build if a newer build already
// runs in the PR. // passed a higher milestone.
def buildNumber = env.BUILD_NUMBER as int // https://www.jenkins.io/doc/pipeline/steps/pipeline-milestone-step/
for (int i = 1; i <= buildNumber; i++) { def buildNumber = env.BUILD_NUMBER as int
milestone(i) for (int i = 1; i <= buildNumber; i++) {
milestone(i)
}
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment