Skip to content

Commit

Permalink
Fix position of abort stale job script in gradle-check (#5044)
Browse files Browse the repository at this point in the history
Signed-off-by: Rishabh Singh <[email protected]>
  • Loading branch information
rishabh6788 authored Sep 20, 2024
1 parent 52c5e8b commit e3e26e1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions jenkins/gradle/gradle-check.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,6 @@ pipeline {
BUILD_CAUSE = currentBuild.getBuildCauses()
}
stages {
stage('Check and abort stale runs') {
steps {
script {
abortStaleJenkinsJobs(jobName: 'gradle-check', lookupTime: 3)
}
}
}
stage('Run Gradle Check') {
steps {
script {
Expand Down Expand Up @@ -129,6 +122,8 @@ pipeline {
bwc_checkout_align = "true"
}

abortStaleJenkinsJobs(jobName: 'gradle-check', lookupTime: 3)

runGradleCheck(
gitRepoUrl: "${pr_from_clone_url}",
gitReference: "${pr_from_sha}",
Expand Down

0 comments on commit e3e26e1

Please sign in to comment.