Skip to content

Commit

Permalink
Merge pull request #23 from mtouloup/master
Browse files Browse the repository at this point in the history
Add jenkins stage promoting to v5 envs
  • Loading branch information
mtouloup committed Sep 5, 2019
2 parents a109db6 + 1c2513e commit 0acdaee
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,32 @@ 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-dsm:latest registry.sonata-nfv.eu:5000/tng-vnv-dsm:v5.0'
sh 'docker tag registry.sonata-nfv.eu:5000/tng-vnv-dsm:latest sonatanfv/tng-vnv-dsm:v5.0'
sh 'docker push registry.sonata-nfv.eu:5000/tng-vnv-dsm:v5.0'
sh 'docker push sonatanfv/tng-vnv-dsm: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=tng-vnv-dsm"'
}
}
}
}
}

}
post {
always {
Expand Down

0 comments on commit 0acdaee

Please sign in to comment.