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' + } + } + } } + } }