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

Add possibility to set azure pipeline (build) name via attribute #1411

Open
swimmesberger opened this issue Aug 20, 2024 · 0 comments
Open

Comments

@swimmesberger
Copy link

Description

See: https://learn.microsoft.com/en-us/azure/devops/pipelines/process/run-number?view=azure-devops for use-cases for custom azure build pipeline names.
In yaml it can be set via the "name" property like so:

trigger:
  - main

name: '$(Date:yyyy.M.d).$(Rev:r)'

variables:
  - group: pipeline-variables

stages:
...

It would be nice to set it via the generation attribute too like so:

[AzurePipelines(
    AzurePipelinesImage.UbuntuLatest,
    InvokedTargets = [nameof(Test)],
    BuildName = "$(Date:yyyy.M.d).$(Rev:r)",
    TriggerBranchesInclude = ["master"],
    AutoGenerate = false
)]
public class Build : NukeBuild {
...
}

Usage Example

No response

Alternative

No response

Could you help with a pull-request?

No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant