Skip to content
Snippets Groups Projects
Commit 5d28512f authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

checkout scm before updating project template

parent 030f1932
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,13 @@ def call(ArrayList<String> dependencyList, String gitUrl='') {
steps {
script {
node('Docker') {
if (env.BRANCH_NAME && env.BRANCH_NAME != '') {
git branch: env.BRANCH_NAME, url: gitUrl
} else {
git gitUrl
}
sh """
git config credential.helper store
git remote add project-template "https://github.com/ChimeraTK/project-template" || true
git remote update
git merge --no-edit project-template/master && git push origin master || true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment