From c2650e978e31dc69c490aef2e31ddf4763a9717a Mon Sep 17 00:00:00 2001 From: Rodrigo Antunes Date: Mon, 26 Aug 2024 17:42:08 -0300 Subject: [PATCH] Dont push latest tags for images built on kogito-images nighlty/weekly jobs (#1241) --- .ci/jenkins/Jenkinsfile.nightly.cloud | 2 +- .ci/jenkins/Jenkinsfile.weekly.cloud | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/.ci/jenkins/Jenkinsfile.nightly.cloud b/.ci/jenkins/Jenkinsfile.nightly.cloud index f5d9549ea..f17565480 100644 --- a/.ci/jenkins/Jenkinsfile.nightly.cloud +++ b/.ci/jenkins/Jenkinsfile.nightly.cloud @@ -215,7 +215,7 @@ String getGitAuthorCredsId() { } boolean isDeployImagesLatestTag() { - return getBuildBranch() == env.BRANCH_FOR_LATEST + return false } boolean isImagesDeploy() { diff --git a/.ci/jenkins/Jenkinsfile.weekly.cloud b/.ci/jenkins/Jenkinsfile.weekly.cloud index 96de6d895..71056fcc9 100644 --- a/.ci/jenkins/Jenkinsfile.weekly.cloud +++ b/.ci/jenkins/Jenkinsfile.weekly.cloud @@ -58,7 +58,6 @@ pipeline { script { def buildParams = getDefaultBuildParams() addImageBuildParams(buildParams, env.WEEKLY_TAG) - addDeployImageWithLatestTagParam(buildParams) // For building addAppsParam(buildParams) @@ -188,10 +187,6 @@ void addImageBuildParams(List buildParams, String tag, String paramsPrefix = def addStringParam(buildParams, constructKey(paramsPrefix, 'TAG'), tag) } -void addDeployImageWithLatestTagParam(buildParams) { - addBooleanParam(buildParams, 'DEPLOY_WITH_LATEST_TAG', isDeployImagesLatestTag()) -} - void addStringParam(List params, String key, String value) { params.add(string(name: key, value: value)) } @@ -216,10 +211,6 @@ String getGitAuthorCredsId() { return env.GIT_AUTHOR_CREDS_ID } -boolean isDeployImagesLatestTag() { - return getBuildBranch() == env.BRANCH_FOR_LATEST -} - boolean isImagesDeploy() { return !params.SKIP_IMAGES }