Description
Updates the statusof the commit on the source provider. Status options are processing, success, and failure.
Usage
Shell | Function |
|---|---|
Bash |
|
PowerShell |
|
update_commit_status <gitRepo resource name> --status <status> --message <message> --context <context>
gitRepo resource nameis the name of the gitRepo resource.statusis the status to be set on the source provider: processing, success, or failure.If no status is specified:
processing will be assumed in
onStartandonExecutesuccess will be assumed in
onSuccessfailure will be assumed in
onFailure
messageis the message (description) string to send with the status.If no message is specified, the default message will be "Step <status> in pipeline $pipeline_name"
contextis the context (key) for thestatus. The source provider will retain only the latest status received for that context.If no context is specified, the default is "$pipeline_name_$step_name"