Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 83e7de5

Browse files
committed
Jenkinsfile: save docker-py artifacts
Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit 8b6da9d) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent fb471aa commit 83e7de5

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Jenkinsfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,23 @@ pipeline {
8383
post {
8484
always {
8585
junit testResults: 'bundles/test-docker-py/junit-report.xml', allowEmptyResults: true
86+
87+
sh '''
88+
echo "Ensuring container killed."
89+
docker rm -vf docker-pr$BUILD_NUMBER || true
90+
'''
91+
92+
sh '''
93+
echo 'Chowning /workspace to jenkins user'
94+
docker run --rm -v "$WORKSPACE:/workspace" busybox chown -R "$(id -u):$(id -g)" /workspace
95+
'''
96+
97+
sh '''
98+
echo 'Creating docker-py-bundles.tar.gz'
99+
tar -czf docker-py-bundles.tar.gz bundles/test-docker-py/*.xml bundles/test-docker-py/*.log
100+
'''
101+
102+
archiveArtifacts artifacts: 'docker-py-bundles.tar.gz'
86103
}
87104
}
88105
}

0 commit comments

Comments
 (0)