huserben / TfsExtensions

Extensions for TFS 2015+ such as custom Widgets (require TFS 2017) and Build Tasks
MIT License
45 stars 22 forks source link

Make Trigger Build Task available to be run on all Platforms #10

Closed huserben closed 7 years ago

huserben commented 7 years ago

Currently the Task is written in PowerShell. This works fine, as long as the build agent that runs it is a windows machine. On Linux Machines the task will fail with following exception:


A supported task execution handler was not found. This error usually means the task does not carry an implementation that is compatible with your current operating system. Contact the task author for more details.

In order to make the task run on all agents it has to be rewritten to TypeScript. When this is done, it should be taken into account that we might want to reuse functionality for a similar task that can trigger releases. (see Issue 9).

tldavies commented 7 years ago

+1

I am surprised that it let me add the Task and run on a non-windows machine since it is in PowerShell. When I usually add PowerShell scripts it becomes a Demand. Would love to use as this a but we are not only using Window machines.

bergmeister commented 7 years ago

@huserben The new version of PowerShell is cross platform: https://github.com/PowerShell/PowerShell

huserben commented 7 years ago

Hi

I know about that, but still the proposed way of doing Tasks is with TypeScript according to MS: "Cross platform tasks are written in Typescript. It is the preferred way to write tasks once." https://github.com/Microsoft/vsts-task-lib

huserben commented 7 years ago

Hi all

just a little update, I started last week looking into the port to node.js so the task will run on all platforms. It looks good and I hope i can upload a first version in the course of next week :-)

huserben commented 7 years ago

Hi all

I uploaded verison 2.0.0 of the Task that is now written in Node and it's possible to use Linux Agents ;-) See https://marketplace.visualstudio.com/items?itemName=benjhuser.tfs-extensions-build-tasks for the infos