Publish evidence items

1 minute read

Use this action to capture evidence data for workflow runs. This information is collected at the step level of the workflow, and the data is available on the Run details EVIDENCE tab for your run.

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. Default is MARKDOWN.

Usage example

In your YAML file, add:

- name: Publish workflow evidence item uses: cloudbees-io/publish-evidence-item@v1 with: content: |- ## Test markup and property rendering - Run ID: ${{ cloudbees.run_id }} - [backend.tar](https://ourcompany.com/repo/backend.tar) format: MARKDOWN

Markdown syntax support

Table 2. Supported Markdown syntax
Markdown syntax Supported? Example

Bullet

- item1

Character code

|

Code

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

External content

![CloudBees platform](https://images.ctfassets.net/vtn4rfaw6n2j/1XFoZ95AdPdToTZvmwCQqt/d48c4fc0ebcf85a0dae952fc7ce5378a/CPEMap_Zoom.gif)

Formatting

- **bold text** - _italics_ - ~~strike through~~

Headings

# H1 Header

HTML/Color

Hyperlink

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

Line break

Quotes section

> Quoted text

Table

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