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 the ability to Label Sources using GitVersion.NuGetVersion #1115

Closed
JoeBrockhaus opened this issue Dec 7, 2016 · 3 comments
Closed

Comments

@JoeBrockhaus
Copy link

This piggybacks off another issue elsewhere..

microsoft/azure-pipelines-agent#716
Not sure if this is something that should/could be solved here or there.

Basically, because the Finalize Build steps are not run on the agent, we're unable to add a tag using the NuGetVersion.

@pascalberger
Copy link
Member

I don't think there is anything we can do inside of the GitVersion task about this as long as VSTS doesn't provide an appropriate API. GitVersion currently just defines the variables using the ##vso[task.setvariable]value command. Variables are explicitely defined in the task context, and therefor available for subsequent tasks, but not outside of the context.

A special case is the build number for which a special command exists ##vso[build.updatebuildnumber]build number which we are using.

A workaround can be to add an additional task which adds the tag, which will work since the task will be in the same context and have therefore access to the variable.

@JakeGinnivan
Copy link
Contributor

Looks like we can't do anything here, going to close this issue :)

@JakeGinnivan
Copy link
Contributor

Also, the actual labeling I think is tied to the release process, not the version generation process. I would argue this functionality should never end up in GitVersion.

That said, I have asked for the same thing!

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

3 participants