1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Jenkinsfile: use wildcards for artifacts, and don't fail on missing ones

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 8b65e058be)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-08-11 22:12:39 +02:00
parent 88301d8f6c
commit 22f6cfd4df
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

14
Jenkinsfile vendored
View file

@ -114,7 +114,7 @@ pipeline {
tar -czf docker-py-bundles.tar.gz bundles/test-docker-py/*.xml bundles/test-docker-py/*.log tar -czf docker-py-bundles.tar.gz bundles/test-docker-py/*.xml bundles/test-docker-py/*.log
''' '''
archiveArtifacts artifacts: 'docker-py-bundles.tar.gz' archiveArtifacts artifacts: '*-bundles.tar.gz', allowEmptyArchive: true
} }
} }
} }
@ -205,7 +205,7 @@ pipeline {
tar -czvf unit-bundles.tar.gz bundles/junit-report.xml bundles/go-test-report.json bundles/profile.out tar -czvf unit-bundles.tar.gz bundles/junit-report.xml bundles/go-test-report.json bundles/profile.out
''' '''
archiveArtifacts artifacts: 'unit-bundles.tar.gz' archiveArtifacts artifacts: '*-bundles.tar.gz', allowEmptyArchive: true
} }
cleanup { cleanup {
sh 'make clean' sh 'make clean'
@ -323,7 +323,7 @@ pipeline {
find bundles -path '*/root/*overlay2' -prune -o -type f \\( -name '*.log' -o -name '*.prof' \\) -print | xargs tar -czf janky-bundles.tar.gz find bundles -path '*/root/*overlay2' -prune -o -type f \\( -name '*.log' -o -name '*.prof' \\) -print | xargs tar -czf janky-bundles.tar.gz
''' '''
archiveArtifacts artifacts: 'janky-bundles.tar.gz' archiveArtifacts artifacts: '*-bundles.tar.gz', allowEmptyArchive: true
} }
cleanup { cleanup {
sh 'make clean' sh 'make clean'
@ -417,7 +417,7 @@ pipeline {
find bundles -path '*/root/*overlay2' -prune -o -type f \\( -name '*.log' -o -name '*.prof' \\) -print | xargs tar -czf s390x-integration-bundles.tar.gz find bundles -path '*/root/*overlay2' -prune -o -type f \\( -name '*.log' -o -name '*.prof' \\) -print | xargs tar -czf s390x-integration-bundles.tar.gz
''' '''
archiveArtifacts artifacts: 's390x-integration-bundles.tar.gz' archiveArtifacts artifacts: '*-bundles.tar.gz', allowEmptyArchive: true
} }
cleanup { cleanup {
sh 'make clean' sh 'make clean'
@ -491,7 +491,7 @@ pipeline {
find bundles -path '*/root/*overlay2' -prune -o -type f \\( -name '*.log' -o -name '*.prof' \\) -print | xargs tar -czf s390x-integration-cli-bundles.tar.gz find bundles -path '*/root/*overlay2' -prune -o -type f \\( -name '*.log' -o -name '*.prof' \\) -print | xargs tar -czf s390x-integration-cli-bundles.tar.gz
''' '''
archiveArtifacts artifacts: 's390x-integration-cli-bundles.tar.gz' archiveArtifacts artifacts: '*-bundles.tar.gz', allowEmptyArchive: true
} }
cleanup { cleanup {
sh 'make clean' sh 'make clean'
@ -583,7 +583,7 @@ pipeline {
find bundles -path '*/root/*overlay2' -prune -o -type f \\( -name '*.log' -o -name '*.prof' \\) -print | xargs tar -czf powerpc-integration-bundles.tar.gz find bundles -path '*/root/*overlay2' -prune -o -type f \\( -name '*.log' -o -name '*.prof' \\) -print | xargs tar -czf powerpc-integration-bundles.tar.gz
''' '''
archiveArtifacts artifacts: 'powerpc-integration-bundles.tar.gz' archiveArtifacts artifacts: '*-bundles.tar.gz', allowEmptyArchive: true
} }
cleanup { cleanup {
sh 'make clean' sh 'make clean'
@ -655,7 +655,7 @@ pipeline {
find bundles -path '*/root/*overlay2' -prune -o -type f \\( -name '*.log' -o -name '*.prof' \\) -print | xargs tar -czf powerpc-integration-cli-bundles.tar.gz find bundles -path '*/root/*overlay2' -prune -o -type f \\( -name '*.log' -o -name '*.prof' \\) -print | xargs tar -czf powerpc-integration-cli-bundles.tar.gz
''' '''
archiveArtifacts artifacts: 'powerpc-integration-cli-bundles.tar.gz' archiveArtifacts artifacts: '*-bundles.tar.gz', allowEmptyArchive: true
} }
cleanup { cleanup {
sh 'make clean' sh 'make clean'