Skip to content

Use kokoro env variable to get the PRs target branch#19120

Merged
jtattermusch merged 1 commit intogrpc:masterfrom
jtattermusch:easy_pr_target_branch
May 23, 2019
Merged

Use kokoro env variable to get the PRs target branch#19120
jtattermusch merged 1 commit intogrpc:masterfrom
jtattermusch:easy_pr_target_branch

Conversation

@jtattermusch
Copy link
Copy Markdown
Contributor

@jtattermusch jtattermusch commented May 23, 2019

turns out kokoro provides the base branch for PRs through an environment variable KOKORO_GITHUB_PULL_REQUEST_TARGET_BRANCH so there's no need for querying the github API ourselves (and parsing the response with jq).

Fixes #18968. Supersedes #19112 and #19062.

This also gets rid of of all the mentions of ghprbTargetBranch env variable which dates back to the times when we were still using Jenkins (the var used to be set by Jenkins' github pull request builder plugin).

@jtattermusch
Copy link
Copy Markdown
Contributor Author

known failures:
#18967
#19005
#18812

@jtattermusch jtattermusch force-pushed the easy_pr_target_branch branch from 39b331d to 019e9a4 Compare May 23, 2019 15:28
Copy link
Copy Markdown
Contributor

@gnossen gnossen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 👍

@jtattermusch jtattermusch merged commit a66cb3b into grpc:master May 23, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Aug 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lang/all wrapped languages release notes: no Indicates if PR should not be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Macos build flakes - fatal: Not a valid object name origin/null

3 participants