Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NugetAuth task should run on internal PRs by default (Port to release branches) #7663

Closed
hoyosjs opened this issue Jul 23, 2021 · 8 comments · Fixed by #8209
Closed

NugetAuth task should run on internal PRs by default (Port to release branches) #7663

hoyosjs opened this issue Jul 23, 2021 · 8 comments · Fixed by #8209

Comments

@hoyosjs
Copy link
Member

hoyosjs commented Jul 23, 2021

After #7580, an internal feed is automatically added but the job template only does nuget auth if not in the public. This is not friendly with internal PRs - say for MSRC ones. NugetAuth should happen automatically if not running in the public project.

cc: @mmitche

@ghost ghost added the Needs Triage A new issue that needs to be associated with an epic. label Jul 23, 2021
@mmitche
Copy link
Member

mmitche commented Jul 23, 2021

@hoyosjs Do you have a link to a failing build? I've seen a bunch of places where it is working.

@riarenas
Copy link
Member

It seems like a reasonable ask. @mmitche Is there somewhere you're tracking these kinds of issues for the work that you and Lukas do during releases?

@ghost ghost removed the Needs Triage A new issue that needs to be associated with an epic. label Aug 13, 2021
@markwilkie
Copy link
Member

@mmitche - thoughts?

@mmitche
Copy link
Member

mmitche commented Oct 14, 2021

May as well do it, it's just a duplication of

- ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
to right before the auth task, and a tweak to remove the PR conditional.

@garath garath self-assigned this Nov 22, 2021
@MattGal MattGal reopened this Nov 30, 2021
@MattGal MattGal changed the title NugetAuth task should run on internal PRs by default NugetAuth task should run on internal PRs by default (Port to release branches) Nov 30, 2021
@dougbu
Copy link
Member

dougbu commented Nov 30, 2021

In a similar fashion, could we consider centralizing the SetupNugetSources.* invocations in the eng/common YAML❔ If there's already an issue for that, please point me that way 😸

@mmitche
Copy link
Member

mmitche commented Dec 1, 2021

We could, but we need to be careful, since there are lots of repos that do not need this functionality and whose build pipelines do not (and should not) have access to the credentials required for SetupNugetSources.ps1. So we would need to conditionalize this based on available variables.

I see the benefit here of centralizing this as fairly minimal.

@MattGal
Copy link
Member

MattGal commented Dec 6, 2021

Based off the push back I am not going to port this to release branches. It's easy for people who need it to "do the right thing" in their own pipeline versus if you make it a default what you predict is likely to happen, so closing.

@MattGal MattGal closed this as completed Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants