-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Kelly Merrick <kelly.merrick@target.com>
- Loading branch information
1 parent
306bd2e
commit 06db65a
Showing
3 changed files
with
67 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
title: "Status" | ||
linkTitle: "Status" | ||
weight: 12 | ||
description: > | ||
Learn about Vela statuses. | ||
--- | ||
|
||
Vela will always publish build statuses to the source control management system. These statuses correspond with the webhook event that triggered the build. | ||
|
||
These statuses can be used to define various branch protection policies. | ||
|
||
Vela also supports up to 10 step-level statuses. These statuses will reflect the success or failure of the _step_ rather than the build. The name of this status will match the value of the `report_as` tag. | ||
|
||
<!-- section break --> | ||
|
||
```yaml | ||
# In this pipeline, the status of the build overall will publish | ||
# to the source control management system (SCM). | ||
# | ||
# The step "Test Suite" will publish to the | ||
# SCM separately as `<context_prefix>/<event>/testing`. | ||
|
||
- name: Welcome | ||
image: alpine | ||
commands: | ||
- echo "Welcome to the Vela docs" | ||
|
||
- name: Test Suite | ||
image: golang:latest | ||
report_as: testing | ||
commands: | ||
- go test | ||
``` | ||
<!-- section break --> | ||
**Tag references:** | ||
[`name:`](/docs/reference/yaml/steps/#the-name-tag), [`image:`](/docs/reference/yaml/steps/#the-image-tag), [`commands:`](/docs/reference/yaml/steps/#the-commands-tag), [`report_as:`](/docs/reference/yaml/steps/#the-report_as-tag) |