commit | 8709e7cbf68d48422ee4ba164879861089b3002b | [log] [tgz] |
---|---|---|
author | Matteo Scandolo <matteo.scandolo@gmail.com> | Thu Apr 27 08:48:41 2017 -0700 |
committer | Matteo Scandolo <matteo.scandolo@gmail.com> | Tue May 02 09:32:22 2017 -0700 |
tree | 4e6d554f565319a6aa17e9b78b30357907370e8a | |
parent | c0efa4bea441816a4a76651367237520b4ae5982 [diff] |
Removing only existing images after pipeline build Change-Id: I5c242bcaea68bb4fa5bca7231975ddc4086a8d53
diff --git a/Jenkinsfile b/Jenkinsfile index d11c4c5..3036c3a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile
@@ -42,7 +42,9 @@ stage 'Clean' sh 'docker stop xos-gui' sh 'docker rm xos-gui' - sh 'docker rmi -f $(docker images -aq)' + sh 'docker rmi -f xosproject/xos-gui:latest' + sh 'docker rmi -f nginx:candidate' + sh 'docker rmi -f nginx:latest' } echo "RESULT: ${currentBuild.result}" }