ricardozanini commented on code in PR #1709:
URL: 
https://github.com/apache/incubator-kie-kogito-images/pull/1709#discussion_r1391372871


##########
.ci/jenkins/Jenkinsfile.build-and-test:
##########
@@ -0,0 +1,130 @@
+@Library('jenkins-pipeline-shared-libraries')_
+
+pipeline {
+    agent {
+        docker { 
+            image env.AGENT_DOCKER_BUILDER_IMAGE
+            args env.AGENT_DOCKER_BUILDER_ARGS
+        }
+    }
+    options {
+        timeout(time: 120, unit: 'MINUTES')
+        skipDefaultCheckout()
+    }
+    stages {
+        stage('Initialization') {
+            steps {
+                script {
+                    sh 'printenv'
+                    
+                    dir(getRepoName()) {
+                        // TODO Test pupose
+                        deleteDir()
+                        githubscm.checkoutIfExists(getRepoName(), 
getChangeAuthor(), getChangeBranch(), 'apache', getChangeTarget(), true, 
credentials = [token: getGitAuthorTokenCredentialsId(), usernamePassword: 
getGitAuthorCredentialsId()])
+                    }
+                }
+            }
+        }
+        stage('Validate CeKit Image and Modules descriptors') {
+            steps {
+                script {
+                    dir(getRepoName()) {
+                        sh '''
+                            curl -Ls 
https://github.com/kiegroup/kie-cloud-tools/releases/download/v1.3.6/cekit-image-validator-runner.tgz
 --output cekit-image-validator-runner.tgz
+                            tar -xzvf cekit-image-validator-runner.tgz
+                            chmod +x cekit-image-validator-runner
+                        '''
+                        sh './cekit-image-validator-runner modules/'
+                        getImages().each { image -> sh 
"./cekit-image-validator-runner ${image}-image.yaml" }

Review Comment:
   @jstastny-cz in the last run I think the env `IMAGES_LIST` was empty. Maybe 
we can add a validation there to alert about the env being empty?
   
   ```
   ./cekit-image-validator-runner -image.yaml
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to