Jenkinsfile faster
This commit is contained in:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -49,14 +49,12 @@ node {
|
|||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
echo 'Push to Repo'
|
echo 'Push to Repo'
|
||||||
docker.withRegistry("https://${DOCKER_REGISTRY}", 'docker-registry-robot-web-development') {
|
docker.withRegistry("https://${DOCKER_REGISTRY}", 'docker-registry-robot-web-development') {
|
||||||
/* Push the container to the custom Registry */
|
|
||||||
customImage.push()
|
customImage.push()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Cleanup') {
|
stage('Cleanup') {
|
||||||
echo 'prune and cleanup'
|
echo 'prune and cleanup'
|
||||||
sh 'npm prune'
|
|
||||||
sh 'rm node_modules -rf'
|
sh 'rm node_modules -rf'
|
||||||
sh "docker rmi ${env.DOCKER_NAME} ${DOCKER_REGISTRY}/${env.DOCKER_NAME}"
|
sh "docker rmi ${env.DOCKER_NAME} ${DOCKER_REGISTRY}/${env.DOCKER_NAME}"
|
||||||
sh 'docker image prune -f'
|
sh 'docker image prune -f'
|
||||||
|
|||||||
Reference in New Issue
Block a user