From 4e6bf787a04b6c9120a075687c7cea691f40767a Mon Sep 17 00:00:00 2001 From: Ana Date: Thu, 5 Sep 2019 11:42:39 +0200 Subject: [PATCH 1/2] feat(*): include publication step in jenkinsfile --- Jenkinsfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 92c1c3fa..97a679da 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -32,9 +32,10 @@ pipeline { } } stage('Containers Publication') { - steps { - echo 'Publication of containers in local registry....' - } + steps { + echo 'Publishing docker image....' + sh 'docker push registry.sonata-nfv.eu:5000/tng-sdk-validation' + } } stage('Deployment in Integration') { steps { From 0267bdf703c83386ec11330b0181649df9d5a890 Mon Sep 17 00:00:00 2001 From: Ana Date: Thu, 5 Sep 2019 11:53:49 +0200 Subject: [PATCH 2/2] feat(*): generate release v5.0 --- Jenkinsfile | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 97a679da..8eb10488 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -37,20 +37,21 @@ pipeline { sh 'docker push registry.sonata-nfv.eu:5000/tng-sdk-validation' } } - stage('Deployment in Integration') { - steps { - echo 'Deploying in integration...' - } - } - stage('Smoke Tests') { - steps { - echo 'Performing Smoke Tests....' - } - } - stage('Publish Results') { - steps { - echo 'Publish Results...' - } + stage('Promoting release v5.0') { + when { + branch 'v5.0' + } + stages { + stage('Generating release') { + steps { + sh 'docker tag registry.sonata-nfv.eu:5000/tng-sdk-validation:latest registry.sonata-nfv.eu:5000/tng-sdk-validation:v5.0' + sh 'docker tag registry.sonata-nfv.eu:5000/tng-sdk-validation:latest sonatanfv/tng-sdk-validation:v5.0' + sh 'docker push registry.sonata-nfv.eu:5000/tng-sdk-validation:v5.0' + sh 'docker push sonatanfv/tng-sdk-validation:v5.0' + } + } + } } + } }