added kaniko example
[upnpmonitor] / Jenkinsfile
index 65656a6c39c866c034eb8310b48a48ce4fe95364..ca86a8c13667f3dee3d9900a99c47f8664e808e1 100644 (file)
@@ -3,7 +3,7 @@ String cron_string = BRANCH_NAME == "trunk" ? "10 3 * * *" : ""
 
 pipeline {
   agent {
-    kubernetes agentsetup(containers: 'java8', 'kaniko') 
+    kubernetes agentsetup(containers: 'java8,kaniko') 
   }
   options {
     disableConcurrentBuilds()
@@ -25,6 +25,11 @@ pipeline {
         container('kaniko') { 
           sh """
             echo 'Hello world' 
+            echo /kaniko/executor --dockerfile Dockerfile \
+                             --cache=true \
+                             --cache-ttl=100000h \
+                             --context \$(  pwd ) \
+                             --destination depot.wamblee.org/rockyrocks:${env.BRANCH_NAME}
           """
         }
       }