Use this action to trigger a Jenkins job. Jenkins is an open-source automation server for CI/CD.
| All CloudBees action repositories are listed at CloudBees, Inc. on GitHub. |
Inputs
| Input name | Data type | Required? | Description |
|---|---|---|---|
|
String |
Yes |
The Jenkins server URL. |
|
String |
Yes |
The Jenkins username. |
|
String |
Yes |
The Jenkins token. |
|
String |
Yes |
The Jenkins job name. |
|
String |
No |
Specifies the test type for generating a job test report. Supported test types are JUnit ( |
|
String |
No |
Specifies the test report file location.
Accepts pattern matching, such as |
|
JSON |
No |
Any additional parameters, formatted as JSON data in key/value pairs. |
[1] You must specify the test-result-location to publish your test results in the platform Test insights dashboard.
Outputs
| Output name | Data type | Description |
|---|---|---|
|
JSON string |
A JSON string containing the output key/values exposed by the invoked Jenkins pipeline.[1] |
[1] You must parse each output parameter in the following format:
fromJSON(steps.<STEP-ID>.outputs.jenkins_output).<OUTPUT_PARAMETER>
Replace <STEP_ID> with your step ID, and <OUTPUT_PARAMETER> with your parameter.