Jenkinsfile faster
This commit is contained in:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user