From 9989a6302fc6264dbcaef6598932c82fc145870b Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Tue, 2 Aug 2022 20:29:16 +0200
Subject: [PATCH] cleanup - use environment

---
 Jenkinsfile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index ad0aeeba..dd3cf025 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -10,6 +10,9 @@ pipeline {
         RELEASE_REGEX = /\d+.\d+.\d+/
         SNAPSHOT_REGEX = /\d+.\d+.\d+-SNAPSHOT/
         FAILED_STAGE = ""
+        
+        //The container runtime (e.g. docker) that is used to do an image based build. If this is set then a container build is always done.
+        QUARKUS_NATIVE_CONTAINER_RUNTIME = "podman"
     }
 
     options {
@@ -59,7 +62,7 @@ pipeline {
 				}
 				container("quarkus-22"){
 				    configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
-						sh './mvnw -s $MAVEN_SETTINGS package -Dnative -Dquarkus.container-image.build=true quarkus.container-image.builder=podman -Dquarkus.container-image.registry=docker.ozg-sh.de  -Dquarkus.native.container-runtime=podman -Dmaven.wagon.http.retryHandler.count=3'
+						sh './mvnw -s $MAVEN_SETTINGS package -Dnative -Dquarkus.container-image.registry=docker.ozg-sh.de -Dmaven.wagon.http.retryHandler.count=3'
 				    }                       
 				}            
 			}
-- 
GitLab