Skip to content

Commit

Permalink
[10.0.x] NO-ISSUE: Set 10.0.x-YYYYMMDD image tags on weekly deploy job (
Browse files Browse the repository at this point in the history
#1783)

* Set 10.0.x-YYYYMMDD image tags on weekly deploy job

* Set 10.0.x-YYYYMMDD image tags on weekly deploy job
  • Loading branch information
rodrigonull authored Jul 19, 2024
1 parent 9665943 commit 5b61f2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .ci/jenkins/Jenkinsfile.weekly.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ void createBuildAndTestStageClosure(String image) {
buildParams.add(string(name: 'DEPLOY_IMAGE_NAMESPACE', value: getDeployImageNamespace()))
buildParams.add(string(name: 'DEPLOY_IMAGE_NAME_SUFFIX', value: getDeployImageNameSuffix()))
buildParams.add(string(name: 'DEPLOY_IMAGE_TAG', value: getDeployImageTag()))
buildParams.add(booleanParam(name: 'DEPLOY_WITH_LATEST_TAG', value: isDeployLatestTag()))
buildParams.add(booleanParam(name: 'DEPLOY_WITH_LATEST_TAG', value: false))

def job = build(job: 'kogito-images.build-image', wait: true, parameters: buildParams, propagate: false)
if (job.result != 'SUCCESS') {
Expand Down Expand Up @@ -281,7 +281,7 @@ String getDeployImageNameSuffix() {
return params.IMAGE_NAME_SUFFIX
}
String getDeployImageTag() {
return getProjectVersion(false)
return getBuildBranch() + "-" + getProjectVersionDate()
}

boolean isDeployLatestTag() {
Expand Down

0 comments on commit 5b61f2a

Please sign in to comment.