Updated Jenkinsfile.
authorpeusterm <manuel.peuster@uni-paderborn.de>
Mon, 18 Sep 2017 15:53:58 +0000 (17:53 +0200)
committerpeusterm <manuel.peuster@uni-paderborn.de>
Mon, 18 Sep 2017 15:53:58 +0000 (17:53 +0200)
Signed-off-by: peusterm <manuel.peuster@uni-paderborn.de>
Jenkinsfile

index f6640a5..c5955b9 100644 (file)
@@ -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}")
+         }
+    }
 }