From fd2b3f1bb4fc5445b3e6ccade89d42c3de9a1bcf Mon Sep 17 00:00:00 2001 From: valentinab25 <30239069+valentinab25@users.noreply.github.com> Date: Tue, 7 Apr 2020 13:44:41 +0300 Subject: [PATCH] Add demo upgrade --- Jenkinsfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 {