Skip to content

Commit

Permalink
RD-2177 add and use base branch param (#3048) (#3075)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvlar authored May 24, 2021
1 parent cacc78f commit e978f91
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ pipeline {
yamlFile 'jenkins/build-pod.yaml'
}
}

parameters{
string(name: 'BASE_BRANCH', defaultValue: 'master', description: 'Base Branch to pull from cloudify-premium')
}
options {
checkoutToSubdirectory('cloudify-manager')
buildDiscarder(logRotator(numToKeepStr:'10'))
Expand Down Expand Up @@ -189,7 +191,7 @@ pipeline {
https://${env.PRIVATE_REPO_GITHUB_TOKEN}@github.com/cloudify-cosmo/cloudify-premium.git \
~/cloudify-premium
}
clone "${env.BRANCH}" || clone master
clone "${env.BRANCH}" || clone "${params.BASE_BRANCH}"
"""

vEnv()
Expand Down

0 comments on commit e978f91

Please sign in to comment.