Skip to content

Commit

Permalink
Merge pull request #74 from srodriguezOPT/master
Browse files Browse the repository at this point in the history
Promoting release 5.0 stage added
  • Loading branch information
santiagordguez authored Sep 4, 2019
2 parents 3b82380 + c07dee4 commit b832c21
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,30 @@ pipeline {
}
}
}
stage('Promoting release v5.0') {
when {
branch 'v5.0'
}
stages {
stage('Generating release') {
steps {
sh 'docker tag registry.sonata-nfv.eu:5000/tng-vnv-executor:latest registry.sonata-nfv.eu:5000/tng-vnv-executor:v5.0'
sh 'docker tag registry.sonata-nfv.eu:5000/tng-vnv-executor:latest sonatanfv/tng-vnv-executor:v5.0'
sh 'docker push registry.sonata-nfv.eu:5000/tng-vnv-executor:v5.0'
sh 'docker push sonatanfv/tng-vnv-executor:v5.0'
}
}
stage('Deploying in v5.0 servers') {
steps {
sh 'rm -rf tng-devops || true'
sh 'git clone https://github.com/sonata-nfv/tng-devops.git'
dir(path: 'tng-devops') {
sh 'ansible-playbook roles/vnv.yml -i environments -e "target=sta-vnv-v5-0 component=executor"'
}
}
}
}
}
}
post {
always {
Expand Down

0 comments on commit b832c21

Please sign in to comment.