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 name
is the name of the gitRepo resource.status
is the status to be set on the source provider: processing, success, or failure.If no status is specified:
processing will be assumed in
onStart
andonExecute
success will be assumed in
onSuccess
failure will be assumed in
onFailure
message
is 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"
context
is 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"