From 68fc724f9e56ff7c8e100bc2ee70ce4d974cf57e Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Tue, 19 Sep 2023 15:29:28 -0700 Subject: [PATCH] disable check and cancel old builds it gets a permission error --- Jenkinsfile | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 46e14e7f..c9a92a23 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,22 +18,22 @@ pipeline { LATEST_BRANCH="main" } stages { - stage('Check and Cancel Old Builds') { - steps { - script { - def currentBuildNumber = currentBuild.number + // stage('Check and Cancel Old Builds') { + // steps { + // script { + // def currentBuildNumber = currentBuild.number - // Check all build from same project - for (build in currentBuild.rawBuild.getParent().getBuilds()) { - // Check if an older build is still running and cancel it in favor of the new one - if (build.number < currentBuildNumber && build.building) { - echo "Cancelling build ${build.number}" - build.doStop() - } - } - } - } - } + // // Check all build from same project + // for (build in currentBuild.rawBuild.getParent().getBuilds()) { + // // Check if an older build is still running and cancel it in favor of the new one + // if (build.number < currentBuildNumber && build.building) { + // echo "Cancelling build ${build.number}" + // build.doStop() + // } + // } + // } + // } + // } stage('build and push') { parallel { stage('Build and push arm64_graviton2 image') {