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

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


The following commit(s) were added to refs/heads/kie-issues_752 by this push:
     new d0c5af56 fix build pipeline
d0c5af56 is described below

commit d0c5af5611d1dc6af59fd9de008f5c995250c011
Author: jstastny-cz <[email protected]>
AuthorDate: Mon Dec 11 10:06:27 2023 +0100

    fix build pipeline
---
 .ci/jenkins/Jenkinsfile.build-kogito-ci-image | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.ci/jenkins/Jenkinsfile.build-kogito-ci-image 
b/.ci/jenkins/Jenkinsfile.build-kogito-ci-image
index af1b45dc..a3c536d3 100644
--- a/.ci/jenkins/Jenkinsfile.build-kogito-ci-image
+++ b/.ci/jenkins/Jenkinsfile.build-kogito-ci-image
@@ -36,13 +36,13 @@ pipeline {
 
                         sh """
                             docker build -t ${env.IMAGE_NAME_TAG} -f 
apache-nodes/Dockerfile.kogito-ci-build ./apache-nodes
-                            docker tag ${env.IMAGE_NAME_TAG} 
${env.IMAGE_NAME}:${GIT_COMMIT}
+                            docker tag ${env.IMAGE_NAME_TAG} 
${env.IMAGE_NAME}:${env.GIT_COMMIT?:githubscm.getCommitHash()}
                             docker tag ${env.IMAGE_NAME_TAG} 
${env.IMAGE_NAME}:${BRANCH_NAME}-latest
                         """
 
                         sh """
                             docker --config ${DOCKER_CONFIG} push 
${env.IMAGE_NAME_TAG}
-                            docker --config ${DOCKER_CONFIG} push 
${env.IMAGE_NAME}:${GIT_COMMIT}
+                            docker --config ${DOCKER_CONFIG} push 
${env.IMAGE_NAME}:${env.GIT_COMMIT?:githubscm.getCommitHash()}
                             docker --config ${DOCKER_CONFIG} push 
${env.IMAGE_NAME}:${BRANCH_NAME}-latest
                         """
                     }


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

Reply via email to