mirror of
https://github.com/triqs/dft_tools
synced 2024-12-23 04:43:42 +01:00
[jenkins] don't allow empty docker updates
just fail and ignore
This commit is contained in:
parent
f65e5bfbad
commit
172b2da58f
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -103,7 +103,7 @@ try {
|
|||||||
git(url: "ssh://git@github.com/TRIQS/docker.git", branch: env.BRANCH_NAME, credentialsId: "ssh", changelog: false)
|
git(url: "ssh://git@github.com/TRIQS/docker.git", branch: env.BRANCH_NAME, credentialsId: "ssh", changelog: false)
|
||||||
sh "echo '160000 commit ${commit}\t${projectName}' | git update-index --index-info"
|
sh "echo '160000 commit ${commit}\t${projectName}' | git update-index --index-info"
|
||||||
sh """
|
sh """
|
||||||
git commit --author='Flatiron Jenkins <jenkins@flatironinstitute.org>' --allow-empty -m 'Autoupdate ${projectName}' -m '${env.BUILD_TAG}'
|
git commit --author='Flatiron Jenkins <jenkins@flatironinstitute.org>' -m 'Autoupdate ${projectName}' -m '${env.BUILD_TAG}'
|
||||||
"""
|
"""
|
||||||
// note: credentials used above don't work (need JENKINS-28335)
|
// note: credentials used above don't work (need JENKINS-28335)
|
||||||
sh "git push origin ${env.BRANCH_NAME}"
|
sh "git push origin ${env.BRANCH_NAME}"
|
||||||
|
Loading…
Reference in New Issue
Block a user