X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=Jenkinsfile;h=61cf1aef6b696823c9a3e69a10c2d717c3f2e83a;hb=e401b232ee7269d75446bf1780af1fe255c0b5ee;hp=78b3a6c657c8ccaa7ad5bc8743ad4c70a5d33a02;hpb=cd571f7cf7e4d891fa17185fad5c0f92258cb430;p=upnpmonitor diff --git a/Jenkinsfile b/Jenkinsfile index 78b3a6c..61cf1ae 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,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} + """ + } } } }