Skip to content

Commit

Permalink
Add demo upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinab25 committed Apr 7, 2020
1 parent 1218f46 commit fd2b3f1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ pipeline {
environment {
registry = "eeacms/eprtr-frontend"
template = "templates/volto-eprtr"
RANCHER_STACKID = "1st1851"
RANCHER_ENVID = "1a332957"
dockerImage = ''
tagName = ''
}
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit fd2b3f1

Please sign in to comment.