Skip to content

Commit

Permalink
Add new stage in gradle-check to check and abort stale runs
Browse files Browse the repository at this point in the history
Signed-off-by: Rishabh Singh <[email protected]>
  • Loading branch information
rishabh6788 committed Sep 19, 2024
1 parent 5b3267c commit a234e82
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 31 deletions.
9 changes: 8 additions & 1 deletion jenkins/gradle/gradle-check.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* compatible open source license.
*/

lib = library(identifier: 'jenkins@6.6.0', retriever: modernSCM([
lib = library(identifier: 'jenkins@6.9.1', retriever: modernSCM([
$class: 'GitSCMSource',
remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git',
]))
Expand Down Expand Up @@ -79,6 +79,13 @@ pipeline {
BUILD_CAUSE = currentBuild.getBuildCauses()
}
stages {
stage('Check and abort in-progress runs for same pull-request') {
steps {
script {
abortStaleJenkinsJobs(jobName: 'gradle-check', lookupTime: '3')
}
}
}
stage('Run Gradle Check') {
steps {
script {
Expand Down
30 changes: 0 additions & 30 deletions jenkins/gradle/test-gradle-script.jenkinsfile

This file was deleted.

0 comments on commit a234e82

Please sign in to comment.