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

Support Multistage (YAML) Pipelines #40

Open
lmmarsano opened this issue Nov 7, 2021 · 0 comments
Open

Support Multistage (YAML) Pipelines #40

lmmarsano opened this issue Nov 7, 2021 · 0 comments
Labels
type:feature New feature or request that provides value to the stakeholders/end-users

Comments

@lmmarsano
Copy link

lmmarsano commented Nov 7, 2021

Managing pipelines as code has long been available and is the more modern approach with all the newest features.
However, this code uses variables exclusive to older release pipelines instead of accessing variables available to newer multi-stage pipelines.

if (tl.getVariable("Build.BuildNumber") != undefined){
labels['buildId'] = tl.getVariable("Build.BuildNumber");
}
if (tl.getVariable("Release.DefinitionName") != undefined){
labels['definition'] = tl.getVariable("Release.DefinitionName");
}
if (tl.getVariable("Build.QueuedBy") != undefined){
labels['runby'] = tl.getVariable("Build.QueuedBy");
}
if (tl.getVariable("Release.EnvironmentName") != undefined){
labels['environment'] = tl.getVariable("Release.EnvironmentName");
}
if (tl.getVariable("Release.ReleaseWebURL") != undefined){
labels['pipeline'] = tl.getVariable("Release.ReleaseWebURL");
}

I for one would be happy never to see release pipelines again: unnecessary complexity and error-prone, manual labor that misses the ease of writing & tracking a version controlled text file.

@christian-kreuzberger-dtx christian-kreuzberger-dtx added the type:feature New feature or request that provides value to the stakeholders/end-users label Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or request that provides value to the stakeholders/end-users
Projects
None yet
Development

No branches or pull requests

2 participants