updated Jenkinsfile

This commit is contained in:
Marvin Zhang
2019-08-01 13:00:54 +08:00
parent e21c4631bf
commit 24cbf54f57

9
Jenkinsfile vendored
View File

@@ -43,5 +43,14 @@ pipeline {
"""
}
}
stage('Cleanup') {
steps {
echo 'Cleanup...'
sh """
docker rmi `docker images | grep '<none>' | grep -v IMAGE | awk '{ print \$3 }' | xargs`
docker rm `docker ps -a | grep Exited | awk '{ print \$1 }' | xargs`
"""
}
}
}
}