-
Notifications
You must be signed in to change notification settings - Fork 654
VSTS Marketplace Task doesn't work in a Linux build agent #1476
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
Comments
@dracan thanks for raising this. As you have spotted, the Azure Pipelines (formerly known as VSTS) Task for GitVersion currently only supports Windows Build Agents. There have been discussions about updating the Task to support more operating systems, and I believe the plan is to finalise the migration to .NET Core/Standard, and from there, update the external tooling to support it, including updating the Task, etc. |
@pascalberger where was that change merged to? Looking at the current master branch: https://github.com/GitTools/GitVersion/tree/master/src/GitVersionTfsTask It is still the PowerShell version. |
@gep13 This uses the node engine: https://github.com/GitTools/GitVersion/blob/master/src/GitVersionTfsTask/task.json#L70_L74 The powershell scripts in there are only for building and packaging the task. Or where do you see that it uses PowerShell? |
Oh, hold on... Sorry, I completely read that wrong. Ok, move along, nothing to see here 😄 |
The script executed by the tasks is this one, which has some OS specific code in here: https://github.com/GitTools/GitVersion/blob/master/src/GitVersionTfsTask/GitVersion.ts#L42-L47 |
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions. |
Just adding a comment to stop this issue from being closed by the stale bot. |
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions. |
Is there any progress or planned progress on this issue? |
@evanrobertson can you try the new extension? https://marketplace.visualstudio.com/items?itemName=gittools.usegitversion-preview |
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions. |
Is there any progress or planned progress on this issue? |
@NightFox7 |
I got this error:
using this config
|
@arturcic I had to install dotnet core on my linux build agent and now it works. Thanks ! |
great! Closing this issue |
Still getting this error
I have installed dotnet core as mentioned by @NightFox7. This is my Build Task to install dotnet core on my linux build agent. I have tried with vertion 3.1.100, 3.0.103, 2.2.203 - task: UseDotNet@2
displayName: 'Install .NET Core sdk'
inputs:
packageType: sdk
version: 3.1.100
installationPath: $(Agent.ToolsDirectory)/dotnet |
Looks like the VSTS build task doesn't work in a "Linux Preview" build agent. I'm using Linux containers, Docker, and AKS - so need to use the Linux build agent. Are there any other options for using GitVersion in VSTS?
Thanks for any help with this - awesome work with GitVersion btw! :)
The text was updated successfully, but these errors were encountered: