-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Converting templates to 1ES PT #8892
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
Conversation
|
/azp run |
|
Azure Pipelines failed to run 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
lonitra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor comments about cleaning up conditions checking public vs internal, but otherwise awesome work! 🥳
| jobs: | ||
| - template: /eng/pipeline.yml@self | ||
| parameters: | ||
| ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we’ve separated the public/internal YAML files, we can remove these conditionals throughout this file as well as any others for conditionals that are checking internal vs. public to make things more readable.
The same can be applied to the files you duplicated e.g. azure-pipelines-pr.yml but feel free to do that in a separate PR if not already done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I'll make the required changes and will create a separate PR regarding it.
Related: dotnet/winforms#10895
Microsoft Reviewers: Open in CodeFlow
test run: https://dev.azure.com/dnceng/internal/_build/results?buildId=2404086&view=results
Build pipeline for PR doesn't use
azure-pipelines.yml, it usesazure-pipelines-pr.yml