Skip to content

Commit

Permalink
Change Jenkins credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonRivers committed Jan 13, 2017
1 parent 66fe152 commit 9182002
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions GH-Release.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash
set -e
set -e

# create JSON
TMP_JSON=/tmp/GH-Publish.json
BASE_VERSION=`node -pe "($(cat package.json)).version"`
VERSION="${BASE_VERSION%%.0}.`git rev-list HEAD --count`" # "%%.0" strips trailing ".0"

if ! [ $GHTOKEN ]; then
if ! [ "$GHTOKEN" ]; then
echo 'Please put your GitHub API Token in an environment variable named GHTOKEN'
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ stage ('Copy Install Images') {
stage ('Upload to installers to Github') {
node('Linux && sharedworkspace && NodeJS') {
exws (extWorkspace) {
withCredentials([string(credentialsId: '16dda99e-77d1-462d-a7c8-385eb2dd2ef7', variable: 'GHTOKEN')]) {
withCredentials([usernamePassword(credentialsId: '9f5481da-1a4d-4c5d-b400-cc2ee3a3ac2c', passwordVariable: 'GHTOKEN', usernameVariable: 'API')]) {
sh './GH-Release.sh'
}
}
Expand Down

0 comments on commit 9182002

Please sign in to comment.