mirror of
https://github.com/triqs/dft_tools
synced 2024-10-18 22:11:40 +02:00
[jenkins] only update docker submodule if it exists
This commit is contained in:
parent
7811ee514e
commit
984ead7f5d
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
@ -113,6 +113,7 @@ try {
|
||||
/* Update docker repo submodule */
|
||||
if (release) { dir("$workDir/docker") { try {
|
||||
git(url: "ssh://git@github.com/TRIQS/docker.git", branch: env.BRANCH_NAME, credentialsId: "ssh", changelog: false)
|
||||
sh "test -d ${projectName}"
|
||||
sh "echo '160000 commit ${commit}\t${projectName}' | git update-index --index-info"
|
||||
sh """
|
||||
git commit --author='Flatiron Jenkins <jenkins@flatironinstitute.org>' --allow-empty -m 'Autoupdate ${projectName}' -m '${env.BUILD_TAG}'
|
||||
|
Loading…
Reference in New Issue
Block a user