mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-10-26 08:06:09 +01:00
fetch branches before master checkout
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -47,6 +47,10 @@ node('docker') {
|
||||
// commit changes
|
||||
sh "git -c user.name='CES Marvin' -c user.email='cesmarvin@cloudogu.com' commit -m 'release version ${releaseVersion}'"
|
||||
|
||||
// we need to fetch all branches, so we can checkout master and develop later
|
||||
sh "git config 'remote.origin.fetch +refs/heads/*:refs/remotes/origin/*'"
|
||||
sh "git fetch --all"
|
||||
|
||||
// merge release branch into master
|
||||
sh "git checkout master"
|
||||
sh "git merge --ff-only ${env.BRANCH_NAME}"
|
||||
|
||||
Reference in New Issue
Block a user