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

Need to parameterize BuildId #136

Open
MForte93 opened this issue Oct 25, 2023 · 0 comments
Open

Need to parameterize BuildId #136

MForte93 opened this issue Oct 25, 2023 · 0 comments

Comments

@MForte93
Copy link

MForte93 commented Oct 25, 2023

Hi!
I'm working with this amazing task for a long time. Now, we are migrating to Azure Devops YAML Pipelines and improving the mecanism.
I made a pipeline that is triggered manually and download the artifacts from other build pipeline.
I think due to the nature of pipelines this task is not able to recognize the build pipeline from which the artifact is downloaded. That's why I get the following text:

image

Debugging, I found that is taking the BuildId from the pipeline that is Running and not the BuildId from the build pipeline.

Looking at the code I found that it is getting the BuildId of the environment, and this variable is not overridable.
'''
settings.buildId = parseInt(tl.getVariable('Build.BuildId'));
'''
Could you add the possibility to parameterize the BuilId (with another name, obviously) so that taks could go to grab the work items related to that particular build?
I believe that is not a complex situation to fix

Thanks in advance!

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

No branches or pull requests

1 participant