This is an automated email from the ASF dual-hosted git repository.

rantunes pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-pipelines.git


The following commit(s) were added to refs/heads/main by this push:
     new 9228ee2a Dont push latest tags for images built on kogito-images 
nighlty/weekly jobs (#1242)
9228ee2a is described below

commit 9228ee2a18f327a67d046c528413523e489abd22
Author: Rodrigo Antunes <[email protected]>
AuthorDate: Mon Aug 26 17:42:05 2024 -0300

    Dont push latest tags for images built on kogito-images nighlty/weekly jobs 
(#1242)
---
 .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 9b60353f..ae1e4178 100644
--- a/.ci/jenkins/Jenkinsfile.nightly.cloud
+++ b/.ci/jenkins/Jenkinsfile.nightly.cloud
@@ -236,7 +236,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 cad5725c..5fa76b3c 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)
@@ -209,10 +208,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))
 }
@@ -237,10 +232,6 @@ String getGitAuthorCredsId() {
     return env.GIT_AUTHOR_CREDS_ID
 }
 
-boolean isDeployImagesLatestTag() {
-    return getBuildBranch() == env.BRANCH_FOR_LATEST
-}
-
 boolean isImagesDeploy() {
     return !params.SKIP_IMAGES
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to