diff --git a/Jenkinsfile b/Jenkinsfile index 8bcccff..0f36d94 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,6 +2,8 @@ pipeline { environment { registry = "eeacms/eprtr-frontend" template = "templates/volto-eprtr" + RANCHER_STACKID = "1st1851" + RANCHER_ENVID = "1a332957" dockerImage = '' tagName = '' } @@ -45,6 +47,21 @@ pipeline { } } + stage('Upgrade demo') { + when { + buildingTag() + } + steps { + node(label: 'docker') { + withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'Rancher_dev_token', usernameVariable: 'RANCHER_ACCESS', passwordVariable: 'RANCHER_SECRET'],string(credentialsId: 'Rancher_dev_url', variable: 'RANCHER_URL')]) { + sh '''wget -O rancher_upgrade.sh https://github.com/raw/eea/eea.docker.gitflow/master/src/rancher_upgrade.sh''' + sh '''chmod 755 rancher_upgrade.sh''' + sh '''./rancher_upgrade.sh''' + } + } + } + } + } post {