commit | 5064d629a8320f50aeeb299586a856b95b5c7ce0 | [log] [tgz] |
---|---|---|
author | Alexander Evseev <aevseev@mirantis.com> | Mon Aug 27 15:56:37 2018 +0200 |
committer | Alexander Evseev <aevseev@mirantis.com> | Mon Aug 27 15:56:37 2018 +0200 |
tree | 459e7150da84369b2ab0243794a5ad81b24c0202 | |
parent | 589d04d2f9a8373f586933e98be4b3a9ec2e89d0 [diff] [blame] |
Fix replacing branch name in branch-git-repos Change-Id: I10cd2ec4f20cb46b1f0ac45becfc90a96e51b272 See: https://mirantis.jira.com/browse/PROD-17759
diff --git a/branch-git-repos.groovy b/branch-git-repos.groovy index 383dba0..47c143a 100644 --- a/branch-git-repos.groovy +++ b/branch-git-repos.groovy
@@ -78,7 +78,7 @@ if (gitSrcObj.contains('SUBS_SOURCE_REF')) { echo ("Replacing 'SUBS_SOURCE_REF' => ${SOURCE_REVISION}") - gitSrcObj.replace('SUBS_SOURCE_REF', srcObj) + gitSrcObj = gitSrcObj.replace('SUBS_SOURCE_REF', srcObj) } // Remove preifix `origin/` from gitSrcObj