Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
fix: add npm prune back (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
ynnoj authored Jul 19, 2017
1 parent 58b1132 commit 937c3a1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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']) {
Expand Down

0 comments on commit 937c3a1

Please sign in to comment.