Added Jenkinsfile 15

This commit is contained in:
Sebastian Seedorf
2021-04-19 14:42:13 +02:00
parent 32e245d474
commit 5d456ee817
2 changed files with 6 additions and 2 deletions

2
Jenkinsfile vendored
View File

@@ -97,7 +97,7 @@ node {
sh 'npm prune'
sh 'rm node_modules -rf'
sh "docker rmi ${env.DOCKER_NAME} ${DOCKER_REGISTRY}/${env.DOCKER_NAME}"
sh 'docker image prune'
sh 'docker image prune -f'
sh 'docker rmi $(docker images -a | grep "<none>" | awk "{print \$3}") &2>/del/null || exit 0'
/*mail body: 'project build successful',