Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8394367
D7511.id27246.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
901 B
Subscribers
None
D7511.id27246.diff
View Options
diff --git a/jobs/templates/swh-build-docker-image.groovy.j2 b/jobs/templates/swh-build-docker-image.groovy.j2
--- a/jobs/templates/swh-build-docker-image.groovy.j2
+++ b/jobs/templates/swh-build-docker-image.groovy.j2
@@ -41,13 +41,19 @@
"--pull --no-cache -f docker/Dockerfile --label ${image_label} docker"
)
}
+ stage ('Test image') {
+ sh "make -C tests test"
+ }
stage ('Push image') {
docker.withRegistry(registry_url, dockerCredentialsKeyID) {
dockerImage.push()
}
}
- stage ('Clean up workspace and images') {
- cleanWs()
- sh "docker image ls -q --filter label=${image_label} | uniq | xargs -r -t docker rmi --force"
+ post {
+ always {
+ cleanWs()
+ # Clean up local image resulting from that jenkins build
+ sh "docker image ls -q --filter label=${image_label} | uniq | xargs -r -t docker rmi --force"
+ }
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jun 3, 7:23 PM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3225373
Attached To
D7511: build-docker-image: Introduce a testing stage
Event Timeline
Log In to Comment