From ead5430d778915f13733b437814a9f3f9ba6a423 Mon Sep 17 00:00:00 2001 From: peusterm Date: Mon, 18 Sep 2017 17:53:58 +0200 Subject: [PATCH] Updated Jenkinsfile. Signed-off-by: peusterm --- Jenkinsfile | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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}") + } + } } -- 2.25.1