Add cleanup for Nucleus images in COMAC-in-a-box GitHub test
Change-Id: Id107b17812b6b2e38788822b82b06b9447675e53
diff --git a/jjb/pipeline/comac-in-a-box-github.groovy b/jjb/pipeline/comac-in-a-box-github.groovy
index f2791ec..41db899 100644
--- a/jjb/pipeline/comac-in-a-box-github.groovy
+++ b/jjb/pipeline/comac-in-a-box-github.groovy
@@ -49,6 +49,7 @@
sh label: 'Cleanup Docker Images', script: '''
sudo docker rmi -f $(sudo docker images --format '{{.Repository}} {{.ID}}' | grep 'none' | awk '{print $2}') || true
sudo docker rmi -f $(sudo docker images --format '{{.Repository}}:{{.Tag}}' | grep 'openmme') || true
+ sudo docker rmi -f $(sudo docker images --format '{{.Repository}}:{{.Tag}}' | grep 'nucleus') || true
sudo docker rmi -f $(sudo docker images --format '{{.Repository}}:{{.Tag}}' | grep 'ngic') || true
sudo docker rmi -f $(sudo docker images --format '{{.Repository}}:{{.Tag}}' | grep 'c3po') || true
'''
@@ -71,7 +72,7 @@
docker_tag = "${params.branch}-${pull_request_num}-${abbreviated_commit_hash}"
}
}
- sh label: 'Clone repo', script: """
+ sh label: 'Clone repo, then make docker-build', script: """
rm -rf ${params.project}
if [ "${params.project}" = "c3po" ]
then