This repository contains the code of a Tfs build task that interact with Marathon API from a build or a release definition.
This build task deploys a docker application to Marathon
- Execute the following command to install vscode:
choco install visualstudiocode
- clone this repository:
cd <myParentGitFolder> git clone <repoAddress> cd vsts-buildtask-marathon
- Retrieve the npm package to allow compilation under vscode:
cd \Tasks\MarathonDeploy\ 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
- upload it to tfs or vsts via the GUI (on tfs : http:///tfs/_gallery/manage).