Skip to content

Commit

Permalink
test abort script
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabh6788 committed Sep 19, 2024
1 parent 7596af6 commit 5b3267c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions jenkins/gradle/test-gradle-script.jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
lib = library(identifier: '[email protected]', retriever: modernSCM([
$class: 'GitSCMSource',
remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git',
]))

pipeline {
agent {label 'Jenkins-Agent-AL2023-X64-M52xlarge-Benchmark-Test'}
stages {
stage('Set Description') {
steps {
script {
currentBuild.description = "My custom description here"
}
}
}
stage('Stop Old Builds') {
steps {
script {
abortStaleJenkinsJobs(jobName: 'zsngri-gradle-test', lookupTime: '3')
}
}
}
stage('Do Something') {
steps {
echo 'sleeping 300 seconds'
sh 'sleep 300'
}
}
}
}

0 comments on commit 5b3267c

Please sign in to comment.