Commit cb7d8b5c authored by Raphael Defosseux's avatar Raphael Defosseux

feat(ci): add pruning of volumes

Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent fba7101e
......@@ -350,14 +350,16 @@ pipeline {
}
try {
myShCmd('docker image prune --force', rem_u18_host_flag, rem_u18_host_user, rem_u18_host)
myShCmd('docker volume prune --force', rem_u18_host_flag, rem_u18_host_user, rem_u18_host)
} catch (Exception e) {
echo "We failed to prune all unneeded intermediate images"
echo "We failed to prune all un-needed intermediate images/volumes"
}
if (rem_rhel_host_flag) {
try {
myShCmd('sudo podman image prune --force', rem_rhel_host_flag, rem_rhel_host_user, rem_rhel_host)
myShCmd('sudo podman volume prune --force', rem_rhel_host_flag, rem_rhel_host_user, rem_rhel_host)
} catch (Exception e) {
echo "We failed to prune all unneeded intermediate images"
echo "We failed to prune all un-needed intermediate images/volumes"
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment