VSTS marketplace seems to now support pre-release versions and the ability to select the version of an extension which should be used (See discussion here). Therefore we can publish the VSTS extension also for beta versions.
Required changes:
Is this gonna go soon? Anything I can help with?
As far as deplying beta releases it could be as simple as removing this loc:
https://github.com/GitTools/GitVersion/blob/416ed5ad41a2699bc1dc9fd0731aae1909e1cfdd/deploy.cake#L163
changing the vsix creator to inject the flag based on version (https://github.com/GitTools/GitVersion/blob/416ed5ad41a2699bc1dc9fd0731aae1909e1cfdd/src/GitVersionTfsTask/Create-Vsix.ps1) would be more complex
@SamirHafez Are you interested in writing a PR implementing this?
There currently also is an effort undergoing to rewrite the VSTS task to use the Node handler instead of the PowerShell one, also affecting the build pipeline (See #1139). But this still takes some time until it is ready to be merged.
Interesting, @pascalberger I'll think about it as we definitely want this feature for our other extensions.
@pascalberger seems simple but I'd need input on what exactly to do on what files. Someone who implemented this build mechanism can probably turn this into a 5min PR lol
@pascalberger any news on this? the vsts task in the market place is already pretty old and is missing things like Mainline mode which i would like to use.
@Franklin89 The version in the marketplace is still the latest stable release since no stable 4.0 release is out.
The switch to use the Node handler instead of the PowerShell one is now merged with https://github.com/GitTools/GitVersion/pull/1189, but there was no development done yet for supporting beta releases to be pushed to the marketplace.
And there is still the libgit2sharp which needs to be updated.
+1
Anything me our my team can help with? Which libgit2sharp ticket still needs work?
As a short term workaround could anyone provide some step-by-step installation instructions. I'm struggling to figure out how to get the vsix installed into TFS - just getting an error about an invalid version in the manifest when attempting to install the betas (beta 11).
This would be great. I'd love to to have the fix for #1074 available.
@andrassy, @Tankatronic: The problem mentioned by @SamirHafez in https://github.com/GitTools/GitVersion/issues/1150#issuecomment-277409952 still needs to be fixed before pre-releases can be published to VSTS. If any of you are up for submitting a PR removing .WithCriteria(() => !tag.Contains("-")), I'll be happy to merge it!
@asbjornu I opened PR #1312
Gonna give the PR a go, lets see what happens during the next release!
Any update on this ?
Would really like to se version 4 as an option for the build task, is there a planned update?
I just hit this as wanted to use mainline.
Temporary workaround was to bundle a copy of GitVersion.Commandline in a tools folder (remember to set .gitattributes for the binary files).
^ This didn't work :/
Replaced the task with cmd task
steps:
- script: 'GitVersion.exe $(Build.SourcesDirectory) /output buildserver /nofetch' 'tools/GitVersion'
To summarise what is needed to get pre-release versions published to VSTS.
WithCriteria() from Cake BuildNow that a lot of people want to get their hands on #1713, I assume it would be good to get a beta version out to Azure DevOps. It doesn't seem like much work, have you looked into what's required, @arturcic?
Now that a lot of people want to get their hands on #1713, I assume it would be good to get a beta version out to Azure DevOps. It doesn't seem like much work, have you looked into what's required, @arturcic?
I think the same issue - we need a valid PAT token for publishing. I'll get back to this soon
I see. I thought we had made progress on that front. Anything I can assist with?
I'll let you know when I need some assistance in that area. For now I guess we can manually publish the artifacts from the build to the marketplace to have the people test it
Will be fixed by #1492
Most helpful comment
Any update on this ?