Jenkins: Conditionally rebase on develop with build flag
This commit is contained in:
parent
7c8aa75724
commit
b42df6489e
|
@ -32,6 +32,8 @@ node ('macos1') {
|
|||
sh 'git checkout ' + BRANCH_NAME
|
||||
sh 'rm -rf node_modules'
|
||||
|
||||
sh 'test ${JENKINS_REBASE_DEVELOP} -eq 1 && git rebase origin/develop'
|
||||
|
||||
// Assume all parameters are set in Jenkins 'Parameterized build'
|
||||
// TODO(oskarth): Consider read/write from .env to avoid having to specify in Jenkins again
|
||||
// sh 'cp .env.jenkins .env'
|
||||
|
|
Loading…
Reference in New Issue