From 18c4cdb4ff9440d5ef4af08a3ac7c666cdd4f3e7 Mon Sep 17 00:00:00 2001
From: Erik Brakkee <erik@brakkee.org>
Date: Sat, 1 Oct 2022 20:50:50 +0200
Subject: [PATCH] added kaniko example

---
 Jenkinsfile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 78b3a6c..65656a6 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -3,7 +3,7 @@ String cron_string = BRANCH_NAME == "trunk" ? "10 3 * * *" : ""
 
 pipeline {
   agent {
-    kubernetes agentsetup(containers: 'java8') 
+    kubernetes agentsetup(containers: 'java8', 'kaniko') 
   }
   options {
     disableConcurrentBuilds()
@@ -22,6 +22,11 @@ pipeline {
             mvn -N -Ddistrib=/data/www/http.upnpmonitor.wamblee.org/ site site:deploy
           )
         """   
+        container('kaniko') { 
+          sh """
+            echo 'Hello world' 
+          """
+        }
       }
     }
   }
-- 
2.31.1