BuildStatusUpdate
Send instances of this class to the /app/rest/builds/<locator>/status
endpoint to change the status of a build to either 'SUCCESS' or 'FAILURE'. This replicates the Mark as failed... and Mark as successful... operations available from the 'Actions' menu on the build results page in TeamCity UI.
tip
Data type:
string
Example:SUCCESS
Set to either 'FAILURE' or 'SUCCESS'.
tip
Data type:
string
Example:Irrelevant test failures.
Your custom note that explains why the build status was manually changed.
Below, you can find a full schema of this object, in XML and JSON formats. You can choose what fields to submit depending on your current needs. Different methods might expect different fields: the best approach is to request this entity via GET
and use the response as a base for the following POST
request.
A link to another object implies that you can substitute it with the schema of the linked object, if it is required for your call.
<BuildStatusUpdate comment="Irrelevant test failures." status="SUCCESS"/>
{
"comment" : "Irrelevant test failures.",
"status" : "SUCCESS"
}
Thanks for your feedback!