Jenkinsfile faster

This commit is contained in:
Sebastian Seedorf
2022-01-30 15:47:05 +01:00
parent 6cf15e6415
commit 332e38bcbb

2
Jenkinsfile vendored
View File

@@ -49,14 +49,12 @@ node {
stage('Deploy') {
echo 'Push to Repo'
docker.withRegistry("https://${DOCKER_REGISTRY}", 'docker-registry-robot-web-development') {
/* Push the container to the custom Registry */
customImage.push()
}
}
stage('Cleanup') {
echo 'prune and cleanup'
sh 'npm prune'
sh 'rm node_modules -rf'
sh "docker rmi ${env.DOCKER_NAME} ${DOCKER_REGISTRY}/${env.DOCKER_NAME}"
sh 'docker image prune -f'