Skip to content

[release/3.x] Send System.PullRequest.TargetBranch in job created by SendHelixJob#7083

Merged
lpatalas merged 2 commits intorelease/3.xfrom
lupatala/add-target-branch-property-3.x
Mar 11, 2021
Merged

[release/3.x] Send System.PullRequest.TargetBranch in job created by SendHelixJob#7083
lpatalas merged 2 commits intorelease/3.xfrom
lupatala/add-target-branch-property-3.x

Conversation

@lpatalas
Copy link
Contributor

@lpatalas lpatalas commented Mar 10, 2021

Description

This change is part of moving servicing jobs to COGS subscription: https://github.com/dotnet/core-eng/issues/11639.

We need to include System.PullRequest.TargetBranch pipeline variable in Helix job properties to be able to redirect PR test jobs to servicing subscription. Currently Helix API has no way to tell if the PR was created for main or release/* branch.

I also added other properties that are send in main for consistency and backported SendHelixJob.AddBuildVariableProperty() method from the latest code because it was not yet implemented here.

Related issue: #7074

Customer Impact

There is no customer impact. Only effect is that additional properties will be attached to Helix job.

Regression

No

Risk

The risk of this change is very low. Change is very small and the same code already runs on main.

Workarounds

There is no workaround available. Without this change we won't be able to redirect servicing PR test jobs to COGS subscription.

@lpatalas lpatalas self-assigned this Mar 10, 2021
@riarenas riarenas requested review from markwilkie and mmitche March 10, 2021 17:55
@lpatalas lpatalas merged commit 9467b10 into release/3.x Mar 11, 2021
@lpatalas lpatalas deleted the lupatala/add-target-branch-property-3.x branch March 11, 2021 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants