Skip to content

Commit

Permalink
Dont push latest tags for images built on kogito-images nighlty/weekl…
Browse files Browse the repository at this point in the history
…y jobs (#1241)
  • Loading branch information
rodrigonull authored Aug 26, 2024
1 parent af256ad commit c2650e9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion .ci/jenkins/Jenkinsfile.nightly.cloud
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ String getGitAuthorCredsId() {
}

boolean isDeployImagesLatestTag() {
return getBuildBranch() == env.BRANCH_FOR_LATEST
return false
}

boolean isImagesDeploy() {
Expand Down
9 changes: 0 additions & 9 deletions .ci/jenkins/Jenkinsfile.weekly.cloud
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ pipeline {
script {
def buildParams = getDefaultBuildParams()
addImageBuildParams(buildParams, env.WEEKLY_TAG)
addDeployImageWithLatestTagParam(buildParams)

// For building
addAppsParam(buildParams)
Expand Down Expand Up @@ -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))
}
Expand All @@ -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
}
Expand Down

0 comments on commit c2650e9

Please sign in to comment.