Skip to content

Commit

Permalink
ci(brew): Pass access token to Homebrew job (#5862)
Browse files Browse the repository at this point in the history
**Summary**

Homebrew changed how their `brew bump-formula-pr` script works, and it now requires a GitHub access token to be set as an environment variable instead of reusing the access token configured for "Hub" (https://hub.github.com/)

This updates the Jenkins job to pass a credential (the access token) to the script as an environment variable.

Closes #5861

**Test plan**

Make sure we can update formulas on Homebrew after the change.
  • Loading branch information
Daniel15 authored and BYK committed May 24, 2018
1 parent 05c1b66 commit afc778f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jenkins_jobs.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ job('yarn-homebrew') {
scm {
github 'yarnpkg/yarn', 'master'
}
wrappers {
credentialsBinding {
string 'HOMEBREW_GITHUB_API_TOKEN', 'YARN_GITHUB_TOKEN'
}
}
parameters {
// Passed from yarn-version job
stringParam 'YARN_VERSION'
Expand Down

0 comments on commit afc778f

Please sign in to comment.