This repository contains the code of a Tfs build task that allows to call a REST webservice from a build or a release definition.
This build task allows to call a rest service using the TFS GUI to parameterize the call.
It is available on the Visual Studio Team Services marketplace : https://marketplace.visualstudio.com/items?itemName=CdiscountAlm.rest-call-build-task
- Execute the following command to install vscode:
choco install visualstudiocode
- clone this repository:
cd <myParentGitFolder> git clone https://github.com/Cdiscount/vsts-buildtask-restcall.git cd vsts-buildtask-restcall
- Retrieve the npm package to allow compilation under vscode:
cd restCallBuildTask npm update
- Start vscode, you can use the following command:
code .
- Then in vscode [CTRL+SHIFT+B] should compile without error.
- note: if it doesn't compile correctly, verify that you do not have a path to a bad typescript version (remove path like "C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0; " from your PATH (system&user) environment variables).
- If you update the task/extension (not needed on creation) : increment the version number in the task.json file.
- If you update the task/extension (not needed on creation) : increment the version number in the vss-extension.json file.
- use the tfx framework, in the root folder of the git repository (where the file vss-extension.json is located), execute:
tfx extension create