vsts_create_release {vstsr} | R Documentation |
Azure DevOps Project Release Information
Description
These functions will allow you to create releases from Azure DevOps.
Usage
vsts_create_release(domain, project, auth_key, body)
Arguments
domain |
The name of the Azure DevOps organization. |
project |
the name of the project in |
auth_key |
authentication key generated by using |
body |
a list of extra parameters that can need to be sent to the API call (* mandatory):
|
Details
The artifacts
object within the body contains two items:
alias[character] Sets alias of artifact.
instanceReference[list] Sets instance reference of artifact. e.g. for build artifact it is build number.
For more information about release API calls check https://docs.microsoft.com/en-us/rest/api/vsts/release/releases.
Examples
## Not run:
# Add in own details to get a non-NULL output
auth_key <- vsts_auth_key("<username>", "<password>")
art_list <- list(
list(alias = "Art1", instanceReference = list(id = 1)),
list(alias = "Art2", instanceReference = list(id = 2))
)
body <- list(
definitionId = 1, description = "R API Release",
artifacts = I(art_list)
)
vsts_create_release("domain", "project", auth_key, body)
## End(Not run)