X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=Jenkinsfile;h=61cf1aef6b696823c9a3e69a10c2d717c3f2e83a;hb=e401b232ee7269d75446bf1780af1fe255c0b5ee;hp=2521a41ceee65661295377fc1ef718fad49bf44d;hpb=c8d569d95e00b00e4d8b1d6dd2b7c4dcb8203c77;p=upnpmonitor diff --git a/Jenkinsfile b/Jenkinsfile index 2521a41..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,7 +22,24 @@ 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} + """ + } } } } + post { + changed { + mail to: "jenkins@wamblee.org", + subject: "jenkins build:${currentBuild.currentResult}: ${env.JOB_NAME}", + body: "${currentBuild.currentResult}: Job ${env.JOB_NAME}\nMore Info can be found here: ${env.BUILD_URL}" + } + } }