This is an automated email from the ASF dual-hosted git repository.

jstastnycz pushed a commit to branch kie-issues_755
in repository 
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-serverless-operator.git


The following commit(s) were added to refs/heads/kie-issues_755 by this push:
     new bffe4713 replace local var with env
bffe4713 is described below

commit bffe471377b4fe07345438a662580cb5f197595e
Author: jstastny-cz <[email protected]>
AuthorDate: Wed Dec 13 10:53:33 2023 +0100

    replace local var with env
---
 .ci/jenkins/Jenkinsfile.deploy | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/.ci/jenkins/Jenkinsfile.deploy b/.ci/jenkins/Jenkinsfile.deploy
index ae7be292..9a579a70 100644
--- a/.ci/jenkins/Jenkinsfile.deploy
+++ b/.ci/jenkins/Jenkinsfile.deploy
@@ -4,8 +4,6 @@ helper = null
 
 commitDone = false
 
-def localRegistryUrl = '';
-
 pipeline {
     agent {
         docker { 
@@ -55,10 +53,10 @@ pipeline {
 
                     // Prepare for multiplatform build
                     int freePort = cloud.findFreePort()
-                    localRegistryUrl = cloud.startLocalRegistry(freePort)
+                    env.localRegistryUrl = cloud.startLocalRegistry(freePort)
 
                     // TODO docker buildx could be preinstalled onto the 
docker image
-                    
cloud.prepareForDockerMultiplatformBuild([localRegistryUrl],[cloud.getDockerIOMirrorRegistryConfig()],
 false)
+                    
cloud.prepareForDockerMultiplatformBuild([env.localRegistryUrl],[cloud.getDockerIOMirrorRegistryConfig()],
 false)
                 }
             }
             post {
@@ -261,7 +259,7 @@ String getBuiltImage() {
 }
 
 String getTempBuiltImageTag() {
-    return 
"${localRegistryUrl}/kogito-serverless-operator:${getOperatorVersion()}"
+    return 
"${env.localRegistryUrl}/kogito-serverless-operator:${getOperatorVersion()}"
 }
 
 void runPythonCommand(String cmd, boolean stdout = false) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to