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

azure-pipelines: Allow a repository to specify additional setup steps #1773

Merged

Conversation

jasonmalinowski
Copy link
Member

Right now any repository consuming these templates can customize how their repository is build, tested, and published by changing the behavior of 'npm run build', test, etc. But if you need some additional setup tasks that don't cleanly fit into npm then it's tough to do.

The specific motivation for this change is wanting to use Nerdbank.GitVersioning to update our Azure DevOps build numbers to match what it's computing in an internal repository consuming these templates. The support for that though requires installing a .NET based tool onto the machine, which means we need to ensure .NET is installed on the machine. Rather than reinventing that, it'd be best to use the existing Azure DevOps task which already handles that.

The alternative approaches here would be to:

  1. Just have the templates always install .NET, but that's just a waste of time for other repositories.
  2. Add a specific setting to enable installing .NET, but rather than creating a one-off feature, it's just as easy to make a general mechanism.
  3. Stop having the other repository consume these templates at all.

@jasonmalinowski jasonmalinowski requested a review from a team as a code owner August 22, 2024 00:47
Right now any repository consuming these templates can customize how
their repository is build, tested, and published by changing the
behavior of 'npm run build', test, etc. But if you need some additional
setup tasks that don't cleanly fit into npm then it's tough to do.

The specific motivation for this change is wanting to use
Nerdbank.GitVersioning to update our Azure DevOps build numbers to match
what it's computing in an internal repository consuming these templates.
The support for that though requires installing a .NET based tool onto
the machine, which means we need to ensure .NET is installed on the
machine. Rather than reinventing that, it'd be best to use the existing
Azure DevOps task which already handles that.

The alternative approaches here would be to:

1. Just have the templates always install .NET, but that's just a waste
   of time for other repositories.
2. Add a specific setting to enable installing .NET, but rather than
   creating a one-off feature, it's just as easy to make a general
   mechanism.
3. Stop having the other repository consume these templates at all.
@bwateratmsft bwateratmsft changed the title Allow a repository to specify additional setup steps azure-pipelines: Allow a repository to specify additional setup steps Aug 22, 2024
@bwateratmsft bwateratmsft merged commit 7ca56ce into microsoft:main Aug 22, 2024
4 checks passed
@jasonmalinowski jasonmalinowski deleted the allow-additional-setup-steps branch August 22, 2024 17:06
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.

2 participants