Jenkins: Conditionally rebase on develop with build flag

This commit is contained in:
Oskar Thoren 2018-01-04 01:49:18 +09:00
parent 7c8aa75724
commit b42df6489e
No known key found for this signature in database
GPG Key ID: 5128AB0637CD85AF
1 changed files with 2 additions and 0 deletions

View File

@ -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'