Skip to content

Commit

Permalink
fix(tooling): suppress publish errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian W. Remmel committed May 16, 2017
1 parent 7ce3a6e commit 099b10a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Jenkinsfile
Expand Up @@ -403,9 +403,11 @@ ansiColor('xterm') {
}
}

sh 'git add packages/node_modules/*/package.json packages/node_modules/@ciscospark/*/package.json'
sh "git commit --no-verify -m v${version}"
sh "git tag 'v${version}'"
def addResult = sh script: 'git add packages/node_modules/*/package.json packages/node_modules/@ciscospark/*/package.json', returnStatus
if (addResult.toString() == "0") {
sh "git commit --no-verify -m v${version}"
sh "git tag 'v${version}'"
}
sh "npm run deps:generate"

// Rebuild with correct version number
Expand Down Expand Up @@ -462,7 +464,7 @@ ansiColor('xterm') {
echo ''
echo ''
echo ''
sh 'npm run tooling -- exec -- npm publish --access public || true'
sh 'npm run tooling -- exec -- bash -c \'npm publish --access public || true\''
echo ''
echo ''
echo ''
Expand Down

0 comments on commit 099b10a

Please sign in to comment.