From d880fb8091cb4b458b2ef6ecbfa893036aef2afe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Sj=C3=B6lund?= Date: Sat, 26 Nov 2022 00:02:26 +0100 Subject: [PATCH] Use the git pipeline stage instead of scm to checkout (#9770) The scm checkout used the OpenModelica.git repo despite www being configured as the source. --- Jenkinsfile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 37f890ea9c8..c71fee8904a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -824,12 +824,7 @@ pipeline { skipDefaultCheckout true } steps { - checkout([ - $class: 'GitSCM', - branches: [[name: '*/main']], - extensions: scm.extensions + [[$class: 'CleanCheckout']], - userRemoteConfigs: [[credentialsId: 'git-credentials', url: 'https://github.com/OpenModelica/www.openmodelica.org.git']] - ]) + git branch: 'main', credentialsId: 'Hudson-SSH-Key', url: 'https://github.com/OpenModelica/www.openmodelica.org.git' unstash 'bibliography' // 'doc/bibliography/openmodelica.org-bibgen' sh "git remote -v | grep www.openmodelica.org" sh "mv doc/bibliography/openmodelica.org-bibgen/*.md content/research/" @@ -839,7 +834,7 @@ pipeline { if ! git diff-index --quiet HEAD; then git commit -m 'Updated bibliography' ssh-keyscan github.com >> ~/.ssh/known_hosts - git push git@github.com:OpenModelica/www.openmodelica.org.git main:main + git push fi """ }