Skip to content

Commit

Permalink
print images registries as part of OSL prod UMB message job
Browse files Browse the repository at this point in the history
Print the images registries in the same format that is expected as part of the promotion email to make it easier.
  • Loading branch information
rgdoliveira committed Dec 5, 2024
1 parent 5766467 commit b7adf22
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ pipeline {
script {
def messageBody = getMessageBody(milestone, projectsAndVersions, images)
triggerUMBMessageJob(messageBody, milestone)
printImagesRegistries(images)
}
}
}
Expand Down Expand Up @@ -150,6 +151,22 @@ def getMessageBody(milestone, projectsAndVersions, images) {
}"""
}

def printImagesRegistries(images) {
def imagesRegistries = """\
data-index-ephemeral: ${images["data-index-ephemeral"].imageTag}
data-index-postgresql: ${images["data-index-postgresql"].imageTag}
jobs-service-ephemeral: ${images["jobs-service-ephemeral"].imageTag}
jobs-service-postgresql: ${images["jobs-service-postgresql"].imageTag}
swf-builder: ${images["swf-builder"].imageTag}
swf-devmode: ${images["swf-devmode"].imageTag}
management-console: ${images["management-console"].imageTag}
operator: ${images["operator"].imageTag}
operator-bundle: ${images["operator-bundle"].imageTag}
kn-workflow-cli-artifacts: ${images["kn-workflow-cli-artifacts"].imageTag}
""".stripIndent()
println "[Images Registries]\n${imagesRegistries}"
}

def triggerUMBMessageJob(messageBody, milestone) {
def umbVersion = milestone.split("\\.")[0] + milestone.split("\\.")[1]
def topic = "VirtualTopic.qe.ci.ba.openshift-serverless-logic.${umbVersion}.cr.trigger"
Expand Down

0 comments on commit b7adf22

Please sign in to comment.