commit | f26daa8a1eeaedae2f82c2614c820c4c49ef3cb1 | [log] [tgz] |
---|---|---|
author | Matteo Scandolo <matteo.scandolo@gmail.com> | Thu Apr 27 08:48:41 2017 -0700 |
committer | Matteo Scandolo <matteo.scandolo@gmail.com> | Thu Apr 27 08:48:41 2017 -0700 |
tree | 0e9fcaf6a8b9f6560c7a4a23f108c6f00f54ae66 | |
parent | 54980089c4c6cf2f746522d366c446dc3c92776e [diff] [blame] |
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}" }