From 39bdf5bf7d441e1ee745dc47d9defb6cdf37db41 Mon Sep 17 00:00:00 2001 From: Jason Frame Date: Fri, 12 Apr 2019 11:27:38 +1000 Subject: [PATCH] Allow use of / in branch name when using the branch from tag release job (#1265) Signed-off-by: Adrian Sutton --- branch-from-tag.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/branch-from-tag.sh b/branch-from-tag.sh index 8381f2e786..ee8d5d0730 100755 --- a/branch-from-tag.sh +++ b/branch-from-tag.sh @@ -45,7 +45,7 @@ branch_version="${major_version}.${minor_version}.${branch_bugfix_version}-SNAPS sed -i "s/${tag_version}/${branch_version}/g" gradle.properties # Update the Jenkins job default branch name -sed -i "s/defaultValue: 'master'/defaultValue: '${branch_name}'/g" Jenkinsfile.release +sed -i "s#defaultValue: 'master'#defaultValue: '${branch_name}'#g" Jenkinsfile.release git commit -am"[Release Script] Updating version to ${branch_version}" git push --set-upstream origin ${branch_name}