Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 456 Bytes
def call(Map params) {
def version = params.version
sh "git checkout -b release/$version"
if (params.performReleaseBranch) {
params.performReleaseBranch(version)
}
sh "git checkout develop"
sh "git merge --ff-only release/$version"
sh "git checkout master"
sh "git merge --ff-only release/$version"
sh "git branch -D release/$version"
sh "git checkout develop"
sh "git push --all && git push --tags"
}