File tree 3 files changed +10
-14
lines changed
3 files changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,11 @@ release_job.with
62
62
label Globals.nontest_label("master" )
63
63
64
64
wrappers {
65
- preBuildCleanup()
65
+ preBuildCleanup()
66
+ credentialsBinding {
67
+ // crendetial name needs to be in sync with provision code at infra/osrf-chef repo
68
+ string('GITHUB_TOKEN', 'osrfbuild-token')
69
+ }
66
70
}
67
71
68
72
parameters
@@ -250,6 +254,10 @@ bottle_job_hash_updater.with
250
254
wrappers
251
255
{
252
256
preBuildCleanup()
257
+ credentialsBinding {
258
+ // crendetial name needs to be in sync with provision code at infra/osrf-chef repo
259
+ string('GITHUB_TOKEN', 'osrfbuild-token')
260
+ }
253
261
}
254
262
255
263
parameters
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ ${GIT} push -u pr_head ${PULL_REQUEST_BRANCH}
66
66
67
67
# Create a pull request if one doesn't yet exist
68
68
if [ -z " ${PULL_REQUEST_URL} " ]; then
69
- # Check for hub command
69
+ # Check for hub command. It requires a GITHUB_TOKEN to work
70
70
HUB=hub
71
71
if ! which ${HUB} ; then
72
72
if [ ! -s hub-linux-amd64-2.2.3.tgz ]; then
Original file line number Diff line number Diff line change @@ -28,18 +28,6 @@ if [[ -z $(ssh -T git@github.com 2>&1 | grep successfully) ]]; then
28
28
fi
29
29
fi
30
30
31
- GITHUB_TOKEN_FILE=" /var/lib/jenkins/.github_token"
32
- if [[ ! -f ${GITHUB_TOKEN_FILE} ]]; then
33
- echo " The hub cli tool needs a valid token at file ${GITHUB_TOKEN_FILE} "
34
- echo " The file was not found"
35
- exit 1
36
- fi
37
-
38
- set +x # keep password secret
39
- export GITHUB_TOKEN=` cat $GITHUB_TOKEN_FILE `
40
- set -x # back to debug
41
- echo ' # END SECTION'
42
-
43
31
echo ' # BEGIN SECTION: download linuxbrew'
44
32
/bin/bash -c " $( curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh) "
45
33
echo ' # END SECTION'
You can’t perform that action at this time.
0 commit comments