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

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


The following commit(s) were added to refs/heads/ubuntu-dind-image by this push:
     new 089d5db5 fix test#4
089d5db5 is described below

commit 089d5db585e61293ba1d93b33773abbc4fdaecea
Author: jstastny-cz <[email protected]>
AuthorDate: Mon Nov 13 13:09:17 2023 +0100

    fix test#4
---
 .ci/jenkins/Jenkinsfile.build-kogito-ci-image | 64 +++++++++++++--------------
 1 file changed, 32 insertions(+), 32 deletions(-)

diff --git a/.ci/jenkins/Jenkinsfile.build-kogito-ci-image 
b/.ci/jenkins/Jenkinsfile.build-kogito-ci-image
index 88dad7a9..060387f7 100644
--- a/.ci/jenkins/Jenkinsfile.build-kogito-ci-image
+++ b/.ci/jenkins/Jenkinsfile.build-kogito-ci-image
@@ -11,7 +11,7 @@ pipeline {
         DOCKER_CONFIG = "${WORKSPACE}/.docker"
 
         IMAGE_NAME = 'quay.io/kiegroup/kogito-ci-build'
-        IMAGE_TAG = "${BRANCH_NAME}-latest"
+        IMAGE_TAG = "${BRANCH_NAME}-build-${BUILD_NUMBER}"
         IMAGE_NAME_TAG = "${env.IMAGE_NAME}:${env.IMAGE_TAG}"
     }
 
@@ -20,43 +20,43 @@ pipeline {
     }
 
     stages {
-        // stage('Build image') {
-        //     steps {
-        //         script {
-        //             sh 'printenv'
+        stage('Build image') {
+            steps {
+                script {
+                    sh 'printenv'
 
-        //             currentBuild.displayName = env.IMAGE_TAG
+                    currentBuild.displayName = env.IMAGE_TAG
 
-        //             cloud.loginContainerRegistry('quay.io', 
'quay_kiegroup_registry_token')
+                    cloud.loginContainerRegistry('quay.io', 
'quay_kiegroup_registry_token')
 
-        //             dir('kogito-pipelines') {
-        //                 deleteDir()
+                    dir('kogito-pipelines') {
+                        deleteDir()
 
-        //                 checkout scm
+                        checkout scm
 
-        //                 sh """
-        //                     docker build --build-arg 
SDKMAN_JAVA=11.0.20-tem -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}:${BRANCH_NAME}-latest
-        //                 """
+                        sh """
+                            docker build --build-arg SDKMAN_JAVA=11.0.20-tem 
-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}:${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}:${BRANCH_NAME}-latest
-        //                 """
-        //             }
-        //         }
-        //     }
-        //     post {
-        //         always {
-        //             script {
-        //                 sh "rm -rf ${DOCKER_CONFIG}"
-        //                 sh 'docker logout quay.io'
-        //             }
-        //         }
-        //     }
-        // }
+                        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}:${BRANCH_NAME}-latest
+                        """
+                    }
+                }
+            }
+            post {
+                always {
+                    script {
+                        sh "rm -rf ${DOCKER_CONFIG}"
+                        sh 'docker logout quay.io'
+                    }
+                }
+            }
+        }
         stage('Test built image') {
             agent {
                 docker {


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

Reply via email to