From 937c3a149db7938c3add7bf3f0fca1517e124e50 Mon Sep 17 00:00:00 2001 From: Jonathan Steele Date: Wed, 19 Jul 2017 17:08:41 +0100 Subject: [PATCH] fix: add npm prune back (#93) --- Jenkinsfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index bb91f0bf3..a763fde8f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -36,6 +36,12 @@ try { } } + stage ("Pruning") { + docker.image('node:alpine').inside { + sh "npm prune" + } + } + stage ("Configure npm") { withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'npm-moltin-moltinbot-password', usernameVariable: 'NPM_USERNAME', passwordVariable: 'NPM_PASSWORD']]) { sh "docker run -e NPM_USER=$NPM_USERNAME -e NPM_PASS=\"$NPM_PASSWORD\" -e NPM_EMAIL=$NPM_EMAIL bravissimolabs/generate-npm-authtoken > .npmrc.tmp" @@ -47,7 +53,7 @@ try { } } - try { + try { stage ("Versioning") { withCredentials([[$class: 'StringBinding', credentialsId: 'github-moltin-moltinbot-token', variable: 'GH_TOKEN']]) { sshagent (credentials: ['github-moltin-moltinbot-ssh-key']) {