disable check and cancel old builds
it gets a permission error
This commit is contained in:
parent
fe2493236e
commit
68fc724f9e
30
Jenkinsfile
vendored
30
Jenkinsfile
vendored
@ -18,22 +18,22 @@ pipeline {
|
|||||||
LATEST_BRANCH="main"
|
LATEST_BRANCH="main"
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Check and Cancel Old Builds') {
|
// stage('Check and Cancel Old Builds') {
|
||||||
steps {
|
// steps {
|
||||||
script {
|
// script {
|
||||||
def currentBuildNumber = currentBuild.number
|
// def currentBuildNumber = currentBuild.number
|
||||||
|
|
||||||
// Check all build from same project
|
// // Check all build from same project
|
||||||
for (build in currentBuild.rawBuild.getParent().getBuilds()) {
|
// for (build in currentBuild.rawBuild.getParent().getBuilds()) {
|
||||||
// Check if an older build is still running and cancel it in favor of the new one
|
// // Check if an older build is still running and cancel it in favor of the new one
|
||||||
if (build.number < currentBuildNumber && build.building) {
|
// if (build.number < currentBuildNumber && build.building) {
|
||||||
echo "Cancelling build ${build.number}"
|
// echo "Cancelling build ${build.number}"
|
||||||
build.doStop()
|
// build.doStop()
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
stage('build and push') {
|
stage('build and push') {
|
||||||
parallel {
|
parallel {
|
||||||
stage('Build and push arm64_graviton2 image') {
|
stage('Build and push arm64_graviton2 image') {
|
||||||
|
Loading…
Reference in New Issue
Block a user