Skip to content

KeesV/kv-vsts-agent-tasks

Repository files navigation

kv-vsts-agent-tasks

Some custom tasks for use with the TFS 2015 and Visual Studio Team Services (VSTS) build and release agent.

Available tasks

Using the tasks

In order to use the tasks, you'll first need to upload them to your VSTS account. Follow these steps to do so:

  1. Clone this repository (if you didn't do this already)

  2. Make sure you have NodeJS installed (https://nodejs.org)

  3. cd to the directory of the task that you need

  4. Install the node modules for the task:

    npm install

  5. Install tfx-cli through NPM:

    npm install -g tfx-cli

  6. Then connect to your VSTS account:

    tfx login

  7. Finally, upload the task (don't forget the . at the end):

    tfx build tasks upload --task-path .

  8. You'll then be able to select the uploaded task from the list of available tasks. add-task

Debugging

  1. Clone this repository
  2. Install Visual Studio Code from https://code.visualstudio.com/.
  3. Make sure you have NodeJS installed (https://nodejs.org)
  4. Install the PowerShell extension for Visual Studio Code
  5. Open the cloned repository in VS Code
  6. Go to the debug tab (Ctrl+Shift+D)
  7. Select the file & version (either JavaScript or PowerShell) that you want to debug from the dropdown select-debug-target
  8. Hit the "Play" (or F5) icon to start debugging
  9. Optionally, you can set the environment variables for debugging in the "launch.json" file (unfortunately this doesn't work for PowerShell yet because it's not supported in the VS Code PowerShell extension)

Contributing

Feel free to fork this repository and submit a pull request if you have any improvements!

About

Build tasks for VSTS/TFS Build 2015

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published