fix missing env prefix for CHANGE_TARGET

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-05-16 22:11:49 +02:00
parent 1aaf7f5acf
commit 3527a5d2ce
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 2 additions and 2 deletions

View File

@ -52,8 +52,8 @@ def doGitRebase() {
return
}
def rebaseBranch = 'develop'
if (CHANGE_TARGET) { /* This is available for PR builds */
rebaseBranch = CHANGE_TARGET
if (env.CHANGE_TARGET) { /* This is available for PR builds */
rebaseBranch = env.CHANGE_TARGET
}
sh 'git status'
sh "git fetch --force origin ${rebaseBranch}:${rebaseBranch}"