mirror of
https://github.com/triqs/dft_tools
synced 2025-01-08 20:33:16 +01:00
[jenkins] try a more robust git push
This commit is contained in:
parent
a42838a8db
commit
29b5018018
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -107,7 +107,7 @@ try {
|
||||
git commit --author='Flatiron Jenkins <jenkins@flatironinstitute.org>' --allow-empty -m 'Generated documentation for ${subdir}' -m '${env.BUILD_TAG} ${commit}'
|
||||
"""
|
||||
// note: credentials used above don't work (need JENKINS-28335)
|
||||
sh "git push origin master"
|
||||
sh "git push origin master || { git pull --rebase origin master && git push origin master ; }"
|
||||
}
|
||||
/* Update docker repo submodule */
|
||||
dir("$workDir/docker") { try {
|
||||
@ -117,7 +117,7 @@ try {
|
||||
git commit --author='Flatiron Jenkins <jenkins@flatironinstitute.org>' --allow-empty -m 'Autoupdate ${projectName}' -m '${env.BUILD_TAG}'
|
||||
"""
|
||||
// note: credentials used above don't work (need JENKINS-28335)
|
||||
sh "git push origin ${env.BRANCH_NAME}"
|
||||
sh "git push origin ${env.BRANCH_NAME} || { git pull --rebase origin ${env.BRANCH_NAME} && git push origin ${env.BRANCH_NAME} ; }"
|
||||
} catch (err) {
|
||||
/* Ignore, non-critical -- might not exist on this branch */
|
||||
echo "Failed to update docker repo"
|
||||
|
Loading…
Reference in New Issue
Block a user