mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 15:25:49 +00:00
fixing $ sign in the stage docker > clean
This commit is contained in:
parent
da1ca5f3f4
commit
14f36488f1
1 changed files with 7 additions and 6 deletions
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
|
@ -92,13 +92,14 @@ node {
|
||||||
} // withCredentials: dockerhub
|
} // withCredentials: dockerhub
|
||||||
} // stage: push
|
} // stage: push
|
||||||
stage('clean') {
|
stage('clean') {
|
||||||
sh """ #!/bin/bash
|
sh """ #!/bin/bash
|
||||||
docker image ls
|
docker images ls
|
||||||
echo 'Deleting local images...'
|
echo 'Deleting local images...'
|
||||||
docker rmi -f $(docker images -aq)
|
|
||||||
|
|
||||||
docker image ls
|
docker rmi -f \$(docker images -aq)
|
||||||
"""
|
|
||||||
|
docker images ls
|
||||||
|
"""
|
||||||
} // stage: clean
|
} // stage: clean
|
||||||
} // stage: docker
|
} // stage: docker
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue