This is an automated email from the ASF dual-hosted git repository.
rantunes pushed a commit to branch 10.0.x
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-pipelines.git
The following commit(s) were added to refs/heads/10.0.x by this push:
new c2650e97 Dont push latest tags for images built on kogito-images
nighlty/weekly jobs (#1241)
c2650e97 is described below
commit c2650e978e31dc69c490aef2e31ddf4763a9717a
Author: Rodrigo Antunes <[email protected]>
AuthorDate: Mon Aug 26 17:42:08 2024 -0300
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 f5d9549e..f1756548 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 96de6d89..71056fcc 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
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]