https://github.com/alanmcgovern/vsts-build-chainer
This allows a VSTS build definition to trigger a build of an arbitrary git branch/commit using a second build definition.
https://github.com/alanmcgovern/vsts-build-chainer
Last synced: about 2 months ago
JSON representation
This allows a VSTS build definition to trigger a build of an arbitrary git branch/commit using a second build definition.
- Host: GitHub
- URL: https://github.com/alanmcgovern/vsts-build-chainer
- Owner: alanmcgovern
- License: mit
- Created: 2017-03-16T13:03:14.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-16T14:31:30.000Z (about 8 years ago)
- Last Synced: 2025-01-23T12:46:54.632Z (3 months ago)
- Language: C#
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Usage:
```
```
Example:
If the build definition for `MyProject-Mac` needs to invoke
`MyProject-Windows` you could add an msbuild target similar to this and
invoke the target as part of the `MyProject-Mac` build.```
```
You will just need to add logic to calculate the current branch and hash.
This information is available through VSTS env vars for builds which are
triggered based on commits in github/vsts, but it is not available if you
manually trigger a commit from the web UI. As such I don't recommend
relying on VSTS supplied environment variables to compute the current branch
or commit.