Skip to content

Commit afc778f

Browse files
Daniel15BYK
authored andcommitted
ci(brew): Pass access token to Homebrew job (yarnpkg#5862)
**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 yarnpkg#5861 **Test plan** Make sure we can update formulas on Homebrew after the change.
1 parent 05c1b66 commit afc778f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

jenkins_jobs.groovy

+5
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ job('yarn-homebrew') {
7676
scm {
7777
github 'yarnpkg/yarn', 'master'
7878
}
79+
wrappers {
80+
credentialsBinding {
81+
string 'HOMEBREW_GITHUB_API_TOKEN', 'YARN_GITHUB_TOKEN'
82+
}
83+
}
7984
parameters {
8085
// Passed from yarn-version job
8186
stringParam 'YARN_VERSION'

0 commit comments

Comments
 (0)