Skip to content
Snippets Groups Projects
Commit 6b5126ae authored by Lars Bilke's avatar Lars Bilke
Browse files

[Jenkins] Added subjob to update ufz/ogs-data.

parent c4f396fa
No related branches found
No related tags found
No related merge requests found
...@@ -380,6 +380,29 @@ pipeline { ...@@ -380,6 +380,29 @@ pipeline {
} }
} }
} }
// ********************* Update ufz/ogs-data ***************************
stage('Update ogs-data') {
agent any
steps {
script {
dir('ogs') { checkout scm }
dir('ogs-data') {
checkout(changelog: false, poll: false, scm: [$class: 'GitSCM',
extensions: [[$class: 'CloneOption', shallow: true]],
userRemoteConfigs: [[
credentialsId: '2719b702-1298-4e87-8464-5dfc62fbd923',
url: 'https://github.com/ufz/ogs-data']]])
sh 'rsync -av --delete --exclude .git/ ../ogs/Tests/Data/ .'
sh "git add . && git commit -m 'Update'"
withCredentials([usernamePassword(
credentialsId: '2719b702-1298-4e87-8464-5dfc62fbd923',
passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME')]) {
sh 'git push https://${GIT_USERNAME}:${GIT_PASSWORD}@github.com/ufz/ogs-data HEAD:master'
}
}
}
}
}
// *************************** Post ************************************ // *************************** Post ************************************
stage('Post') { stage('Post') {
agent any agent any
......
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