This is an automated email from the ASF dual-hosted git repository. ricardozanini pushed a commit to branch radtriste-fix-pipelines in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-images.git
commit 055a4c66ee261a6368f0c2cf9ad8a05486627bf5 Author: jstastny-cz <[email protected]> AuthorDate: Fri Nov 10 10:28:59 2023 +0100 hold localRegistryUrl after startup --- .ci/jenkins/Jenkinsfile.build-image | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.ci/jenkins/Jenkinsfile.build-image b/.ci/jenkins/Jenkinsfile.build-image index 367902d5..676843c4 100644 --- a/.ci/jenkins/Jenkinsfile.build-image +++ b/.ci/jenkins/Jenkinsfile.build-image @@ -2,6 +2,8 @@ QUAY_REGISTRY = 'quay.io' +def localRegistryUrl = ''; + pipeline { agent { docker { @@ -96,8 +98,8 @@ pipeline { updateGithubCommitStatus('PENDING', 'Build in progress') int freePort = cloud.findFreePort() - String localRegistry = cloud.startLocalRegistry(freePort) - cloud.prepareForDockerMultiplatformBuild([localRegistry],[cloud.getDockerIOMirrorRegistryConfig()], false) + localRegistryUrl = cloud.startLocalRegistry(freePort) + cloud.prepareForDockerMultiplatformBuild([localRegistryUrl],[cloud.getDockerIOMirrorRegistryConfig()], false) // Generate the Dockerfile runPythonCommand("make build-image ${getMakeBuildImageArgs()} image_name=${getBuildImageName()} ignore_test=true ignore_tag=true build_options='--dry-run'") @@ -224,7 +226,7 @@ String getBuiltImageTag(String imageTag = '') { if (shouldDeployImage()) { return "${getDeployImageRegistry()}/${getDeployImageNamespace()}/${getFinalImageName()}:${imageTag ?: getDeployImageTag()}" } else { - return "localhost:5000/${getBuildImageName()}:${githubscm.getCommitHash()}" + return "${localRegistryUrl}/${getBuildImageName()}:${githubscm.getCommitHash()}" } } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
