From 3d1fd32d309979001c082c33b078a9c91a5f73e0 Mon Sep 17 00:00:00 2001 From: Stefan Schneider Date: Thu, 5 Sep 2019 11:09:37 +0200 Subject: [PATCH 1/2] adjusted jenkinsfile for rel 5.0 --- Jenkinsfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 49289bc..49ae557 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,6 +27,31 @@ pipeline { sh "pipeline/checkstyle/check.sh" } } + stage('Promoting release v5.0') { + when { + branch 'v5.0' + } + stages { + stage('Generating release') { + steps { + sh 'docker tag registry.sonata-nfv.eu:5000/tng-sdk-benchmark:latest registry.sonata-nfv.eu:5000/tng-sdk-benchmark:v5.0' + sh 'docker tag registry.sonata-nfv.eu:5000/tng-sdk-benchmark:latest sonatanfv/tng-sdk-benchmark:v5.0' + sh 'docker push registry.sonata-nfv.eu:5000/tng-sdk-benchmark:v5.0' + sh 'docker push sonatanfv/tng-sdk-benchmark: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 { From f95e44324cabdd344d609ccfaad619a542ddd844 Mon Sep 17 00:00:00 2001 From: Stefan Schneider Date: Thu, 5 Sep 2019 11:49:38 +0200 Subject: [PATCH 2/2] removed the deployment part for rel5 --- Jenkinsfile | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 49ae557..7175663 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -40,16 +40,6 @@ pipeline { sh 'docker push sonatanfv/tng-sdk-benchmark: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"' - } - } - } } } }