pipeline {
agent any
-
stages {
stage('Checkout') {
steps {
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}")
+ }
+ }
}