Skip to content

Commit

Permalink
Add new stage in gradle-check to check and abort stale runs (#5043)
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 7596af6 commit 52c5e8b
Showing 1 changed file with 8 additions and 1 deletion.
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 stale runs') {
steps {
script {
abortStaleJenkinsJobs(jobName: 'gradle-check', lookupTime: 3)
}
}
}
stage('Run Gradle Check') {
steps {
script {
Expand Down

0 comments on commit 52c5e8b

Please sign in to comment.