Use this action to trigger a CloudBees CI job. To learn more, refer to the CloudBees CI documentation.
Input name | Data type | Required? | Description |
---|---|---|---|
|
String |
Yes |
The CloudBees CI server URL. |
|
String |
Yes |
The CloudBees CI username. |
|
String |
Yes |
The CloudBees CI token. |
|
String |
Yes |
The CloudBees CI 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 string |
No |
Any additional CloudBees CI parameters, formatted as JSON data in key/value pairs. |
In your YAML file, add:
jobs:
my-cbci-job:
steps:
- name: Run a CloudBees CI job
uses: cloudbees-io/cbci-run-job@v2
with:
url: ${{ vars.CBCI_URL }}
username: ${{ secrets.CBCI_USERNAME }}
token: ${{ secrets.CBCI_TOKEN }}
job-name: "CloudBees_CI_job_name"
test-type: JUnit
test-result-location: junit-service*
parameters: '{"BRANCH_NAME":"main","ENV_NAME":"stage"}'
This code is made available under the MIT license.
-
Learn more about using actions in CloudBees workflows.
-
Learn about the CloudBees platform.