Changing cleanup script
Change-Id: I98249254862de8487b4485e9f2cfae5dbb04bf64
diff --git a/Jenkinsfile b/Jenkinsfile
index b9eccb6..fce148a 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -40,8 +40,8 @@
stage 'Clean'
sh 'docker stop xos-gui'
sh 'docker rm xos-gui'
- sh 'docker rmi xosproject/xos-gui'
- sh 'docker rmi $(docker images | grep none | awk "{print $3}")'
+ sh 'docker rmi -f xosproject/xos-gui'
+ sh 'docker rmi -f $(docker images -aq -f dangling=true'
}
echo "RESULT: ${currentBuild.result}"
}