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

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
pull/2/head
Jason Frame 6 years ago committed by GitHub
parent 4fc45282d5
commit 39bdf5bf7d
  1. 2
      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 sed -i "s/${tag_version}/${branch_version}/g" gradle.properties
# Update the Jenkins job default branch name # 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 commit -am"[Release Script] Updating version to ${branch_version}"
git push --set-upstream origin ${branch_name} git push --set-upstream origin ${branch_name}

Loading…
Cancel
Save