Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Allow use of / in branch name when using the branch from tag release job #1265

Merged
merged 1 commit into from
Apr 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion branch-from-tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}