first try to push to nexus
[upnpmonitor] / Jenkinsfile
index 78b3a6c657c8ccaa7ad5bc8743ad4c70a5d33a02..61cf1aef6b696823c9a3e69a10c2d717c3f2e83a 100644 (file)
@@ -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,16 @@ pipeline {
             mvn -N -Ddistrib=/data/www/http.upnpmonitor.wamblee.org/ site site:deploy
           )
         """   
+        container('kaniko') { 
+          sh """
+            echo 'Hello world' 
+            /kaniko/executor --dockerfile Dockerfile \
+                             --cache=true \
+                             --cache-ttl=100000h \
+                             --context \$(  pwd ) \
+                             --destination cat.wamblee.org/rockyrocks:${env.BRANCH_NAME}
+          """
+        }
       }
     }
   }