Skip to content

Commit

Permalink
Merge pull request #380 from tsoenen/master
Browse files Browse the repository at this point in the history
Jenkinsfile for release 5.0
  • Loading branch information
tsoenen authored Sep 4, 2019
2 parents 99f67b3 + 771ea2b commit 8c645ee
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,36 @@ pipeline {
}
}
}
stage('Promoting release v5.0') {
when {
branch 'v5.0'
}
stages {
stage('Generating release') {
steps {
sh 'docker tag registry.sonata-nfv.eu:5000/servicelifecyclemanagement:latest registry.sonata-nfv.eu:5000/servicelifecyclemanagement:v5.0'
sh 'docker tag registry.sonata-nfv.eu:5000/functionlifecyclemanagement:latest registry.sonata-nfv.eu:5000/functionlifecyclemanagement:v5.0'
sh 'docker tag registry.sonata-nfv.eu:5000/specificmanagerregistry:latest registry.sonata-nfv.eu:5000/specificmanagerregistry:v5.0'
sh 'docker tag registry.sonata-nfv.eu:5000/placementplugin:latest registry.sonata-nfv.eu:5000/placementplugin:v5.0'
sh 'docker push registry.sonata-nfv.eu:5000/servicelifecyclemanagement:v5.0'
sh 'docker push registry.sonata-nfv.eu:5000/functionlifecyclemanagement:v5.0'
sh 'docker push registry.sonata-nfv.eu:5000/specificmanagerregistry:v5.0'
sh 'docker push registry.sonata-nfv.eu:5000/placementplugin: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 {
always {
Expand Down

0 comments on commit 8c645ee

Please sign in to comment.