Publish evidence items

2 minute read

Use this action to capture job-level evidence data in workflow runs. Go to Runs, and then select your run. The evidence output is displayed in Jobs  Evidence.

Refer to the run evidence documentation for more information.

All CloudBees action repositories are listed at CloudBees, Inc. on GitHub.

Inputs

Table 1. Input details
Input name Data type Required? Description

content

String

Yes

The step level information captured as evidence for the workflow run.

format

String

No

The markup language format. The default is Markdown.

Usage example

In your YAML file, add:

- name: Publish workflow evidence item uses: https://github.com/cloudbees-io/publish-evidence-item@v1 with: content: |- ## example output - Run ID: ${{ cloudbees.run_id }} - [backend.tar](https://ourcompany.com/repo/backend.tar)
This action also supports system property references, such as ${{ cloudbees.run_id }} or ${{ vars.api_endpoint }}.

Markdown syntax support

For more information, refer to the Markdown documentation.

Table 2. Markdown syntax support and examples
Markdown syntax Supported? Example Rendered output

Bulleted list

-item1
-item2

  • item1

  • item2

Character codes

©
|

© |

Code

```
jobs:
  build:
    steps:
    - Compile
```

jobs: build: steps: - Compile

External content

![CBP workflow build video](https://bit.ly/3RagSnN)

Formatting

**bold text**
_italics_

bold text
italics

Headings

# Heading
## Subheading

Heading

Subheading

HTML/Color

Hyperlink

[backend.tar](https://ourcompany.com/repo/backend.tar)

Line break

Quoted text (Blockquotes)

> A block quote of text such as this example.
>
> Anonymous

A block quote of text such as this example.
— Anonymous

Table

Test | Results |
--------|---------|
Test 1 | PASS |
Test 2 | FAIL |
Test 3 | PASS |

| Test | Results | |--------|---------| | Test 1 | PASS | | Test 2 | FAIL | | Test 3 | PASS |