I would like to start a Visual Studio Team Service build through the REST API. There is an API for queuing builds but I couldn't find a way to define variables.
相关问题
- Docker task in Azure devops won't accept "$(pw
- Authentication Failure using Git-LFS Azure DevOps
- Authentication Failure using Git-LFS Azure DevOps
- Getting error: File extension specified '.webt
- “No test result files matching **/*.trx were found
相关文章
- Build errors of missing packages in Visual Studio
- VSTS continuous integration triggers not working
- Close a work item via the commit message
- Increment variable value in TFS build +1
- Can't check in changes to TFS
- Running Jasmine tests on Azure DevOps as part of a
- Azure Active Directory: Add Service Principal to D
- Setup team or users permissions with VSTS REST API
Variables are included in definitions, you can update your build definition to set the variables via build-definition api first and then queue the build.
Following is the variable section get via build-definition api:
The accepted answer does not really answers the question when you need to set a value at queue time. The solution is actually pretty simple you just have to add a
parameters
field to the json payload. The content should be a json string (not directly an object) containing the parameters Ex :EDIT : This feature is now properly documented as
an optional stringified dictionary
. See https://www.visualstudio.com/fr-fr/docs/integrate/api/build/builds#queue-a-build