Skip to content

Commit

Permalink
Merge pull request #220 from jbonnet/update-jenkinsfile
Browse files Browse the repository at this point in the history
Update Jenkinsfile with v5.0
  • Loading branch information
jbonnet committed Sep 4, 2019
2 parents 507be38 + 4218302 commit 9cbf532
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,31 @@ pipeline {
}
}
}
stage('Promoting release v5.0') {
when {
branch 'v5.0'
}
stages {
stage('Generating release') {
steps {
sh 'docker tag registry.sonata-nfv.eu:5000/tng-api-gtw:latest registry.sonata-nfv.eu:5000/tng-api-gtw:v5.0'
sh 'docker tag registry.sonata-nfv.eu:5000/tng-api-gtw:latest sonatanfv/tng-api-gtw:v5.0'
sh 'docker push registry.sonata-nfv.eu:5000/tng-api-gtw:v5.0'
sh 'docker push sonatanfv/tng-api-gtw: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/sp.yml -i environments -e "target=sta-sp-v5-0 component=gatekeeper"'
sh 'ansible-playbook roles/vnv.yml -i environments -e "target=sta-vnv-v5-0 component=gatekeeper"'
}
}
}
}
}
}
post {
success {
Expand Down

0 comments on commit 9cbf532

Please sign in to comment.