Skip to content

Commit

Permalink
Use the git pipeline stage instead of scm to checkout (#9770)
Browse files Browse the repository at this point in the history
The scm checkout used the OpenModelica.git repo despite www being
configured as the source.
  • Loading branch information
sjoelund committed Nov 25, 2022
1 parent 8bfd4bd commit d880fb8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Jenkinsfile
Expand Up @@ -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/"
Expand All @@ -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
"""
}
Expand Down

0 comments on commit d880fb8

Please sign in to comment.