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

rantunes 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 fbd82be3 Add default container engine
fbd82be3 is described below

commit fbd82be39f49633b0094c2f22fe0dca78e0db028
Author: Rodrigo Antunes <[email protected]>
AuthorDate: Tue Dec 12 15:14:33 2023 -0300

    Add default container engine
---
 .ci/jenkins/scripts/helper.groovy | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/.ci/jenkins/scripts/helper.groovy 
b/.ci/jenkins/scripts/helper.groovy
index d4699da0..38542b70 100644
--- a/.ci/jenkins/scripts/helper.groovy
+++ b/.ci/jenkins/scripts/helper.groovy
@@ -15,7 +15,7 @@ void initPipeline() {
     openshift.openshiftApiCredsKey = env.OPENSHIFT_CREDS_KEY
 
     container = load '.ci/jenkins/scripts/container.groovy'
-    container.containerEngine = env.CONTAINER_ENGINE
+    container.containerEngine = env.CONTAINER_ENGINE ?: 'docker'
     container.containerEngineTlsOptions = env.CONTAINER_ENGINE_TLS_OPTIONS ?: 
''
     container.containerOpenshift = openshift
 
@@ -48,14 +48,16 @@ String getTempTag() {
 void checkoutRepo(String repoName = '', String directory = '') {
     repoName = repoName ?: getRepoName()
     closure = {
-        //deleteDir()
         checkout(githubscm.resolveRepository(repoName, getGitAuthor(), 
getBuildBranch(), false, getGitAuthorCredsId()))
         // need to manually checkout branch since on a detached branch after 
checkout command
         //sh "git checkout ${getBuildBranch()}"
     }
 
     if (directory) {
-        dir(directory, closure)
+        dir(directory) {
+            deleteDir()
+            closure()
+        }
     } else {
         closure()
     }


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

Reply via email to