From: peusterm Date: Mon, 18 Sep 2017 15:53:58 +0000 (+0200) Subject: Updated Jenkinsfile. X-Git-Tag: v3.1~5^2~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=ead5430d778915f13733b437814a9f3f9ba6a423;p=osm%2Fvim-emu.git Updated Jenkinsfile. Signed-off-by: peusterm --- diff --git a/Jenkinsfile b/Jenkinsfile index f6640a5..c5955b9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,7 +2,6 @@ pipeline { agent any - stages { stage('Checkout') { steps { @@ -25,7 +24,23 @@ pipeline { stage('Package') { steps { echo 'Packaging (Docker-image)...' + sh "docker tag test-son-emu-img:latest registry.sonata-nfv.eu:5000/son-emu:latest" + sh "docker push registry.sonata-nfv.eu:5000/son-emu" } } } + post { + success { + mail(from: "jenkins@sonata-nfv.eu", + to: "manuel.peuster@upb.de", + subject: "PASSED: son-emu-pipeline", + body: "Job ${env.BUILD_ID} on ${env.JENKINS_URL}") + } + failure { + mail(from: "jenkins@sonata-nfv.eu", + to: "manuel.peuster@upb.de", + subject: "FAILED: son-emu-pipeline", + body: "Job ${env.BUILD_ID} on ${env.JENKINS_URL}") + } + } }