We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c383197 commit d766be5Copy full SHA for d766be5
vars/wrappedNode.groovy
@@ -9,9 +9,9 @@ def call(Map vars, Closure body=null) {
9
// or is misconfigured, these operations will fail and the exception will be
10
// propogated.
11
withChownWorkspace { echo "cleanWorkspace: Ensuring workspace is owned by ${env.USER}" }
12
- echo "Removing all docker images"
13
- sh("for image in \$(docker ps -aq); do docker rm -f \$image; done")
14
- echo "Docker images have been removed"
+ echo "Removing all docker containers"
+ sh("for cid in \$(docker ls -aq); do docker container rm -vf \$cid; done")
+ echo "Docker containers have been removed"
15
16
echo "cleanWorkspace: Removing existing workspace"
17
deleteDir()
0 commit comments