Skip to content

VSTS Task to install a windows service on the same machine as the running VSTS agent.

License

Notifications You must be signed in to change notification settings

stone-payments/vsts-task-install-windows-service

Repository files navigation

Install Windows Service VSTS task

A small task to stop a Windows Service that is running on the same machine as the VSTS agent that executes this task.

Useful to use when working with Deployment Groups in VSTS.

Requirements

Testing

To run unit tests execute the following powershell command at the test directory:

Invoke-Pester -Script .\tests\InstallWindowsService.Tests.ps1 -CodeCoverage .\InstallWindowsService.ps1

Build and Publish

To upload the task to an VSTS account, use the tfx-cli.

Login

tfx login --service-url https://youraccount.visualstudio.com/DefaultCollection

Enter your Personal Access Token.

Upload task

At the root of repository execute the following command:

tfx build tasks upload --task-path src

Contributing

Issues and pull-requests are welcome.