External CI/CD action reference

5 minute read

Input and output reference for all CloudBees actions that trigger jobs and pipelines on external CI/CD platforms. For usage guidance, refer to Run external CI/CD jobs.

AWS CodePipeline

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

pipeline-name

String

Yes

The AWS CodePipeline pipeline name.

parameters

JSON

No

AWS CodePipeline parameters, formatted as JSON data in key/value pairs.

Bamboo

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

url

String

Yes

The Bamboo server URL.

username

String

Yes

The Bamboo username.

password

String

Yes

The Bamboo password.

project-name

String

No

The Bamboo project name.

plan-name

String

No

The Bamboo plan name.

invoke-type

String

Yes

The action type. Supported types are build, release, and deploy.

branch-name

String

No

The Bamboo branch name.

deploy-project-name

String

Required for release and deploy action types.

The Bamboo deploy project name.

release-name

String

Required for release and deploy action types.

The Bamboo release name.

env-name

String

Required for deploy action type.

The Bamboo environment name.

test-type

String

No

Specifies the test type for generating a job test report. Supported test types are JUnit (junit) and TestNG (testng).

test-result-location

String

No

Specifies the test report file location. Accepts pattern matching, such as my-dir/*/my-file.

Bitbucket Pipelines

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

url

String

Yes

The Bitbucket URL.

token

String

Yes

The Bitbucket token.

workspace-name

String

Yes

The Bitbucket workspace name.

repository-name

String

Yes

The Bitbucket repository name.

branch-name

String

Yes

The Bitbucket branch name.

CloudBees CI

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

url

String

Yes

The CloudBees CI server URL.

username

String

Yes

The CloudBees CI username.

token

String

Yes

The CloudBees CI token.

job-name

String

Yes

The CloudBees CI job name.

test-type

String

No

Specifies the test type for generating a job test report. Supported test types are JUnit (junit) and TestNG (testng).

test-result-location

String

No

Specifies the test report file location. Accepts pattern matching, such as my-dir/*/my-file.[1]

parameters

JSON

No

Any additional CloudBees CI parameters, formatted as JSON data in key/value pairs.

[1] You must specify the test-result-location to publish your test results in CloudBees Unify Test insights dashboard.

Table 5. Output details
Output name Data type Description

cbci_output

String

A JSON string containing the output key/values exposed by the invoked CloudBees CI pipeline.[2]

[2] Parse each output parameter in the following format:

fromJSON(steps.<STEP-ID>.outputs.cbci_output).<OUTPUT_PARAMETER>

Replace <STEP-ID> with your step ID and <OUTPUT_PARAMETER> with your parameter.

CircleCI

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

url

String

No

The CircleCI server URL. If not specified, uses https://circleci.com/.

token

String

Yes

The CircleCI token.

vcs-name

String

Yes

The source code management system used. Supported values are GitHub (gh) and Bitbucket (bb).

org-name

String

Yes

The CircleCI organization name.

repo-name

String

Yes

The CircleCI repository name.

branch-name

String

Yes

The CircleCI branch name.

workflow-name

String

Yes

The CircleCI workflow name.

test-type

String

No

Specifies the test type for generating a job test report. Supported test types are JUnit (junit) and TestNG (testng).

test-result-location

String

No

Specifies the test report file location. Accepts pattern matching, such as my-dir/*/my-file.

parameters

JSON

No

Any additional parameters, formatted as JSON data in key/value pairs.

GitHub Actions

  • The target GitHub Actions workflow must specify the workflow_dispatch trigger to be invoked via REST API. Refer to GitHub documentation on manually running a workflow for details.

  • The GitHub token must have Actions: read/write permissions for the repository that owns the workflow.

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

url

String

No

The GitHub server URL. If not specified, uses https://api.github.com.

token

String

Yes

The GitHub token.

org-name

String

Yes

The GitHub organization name.

repo-name

String

Yes

The GitHub Actions repository name.

branch-name

String

Yes

The GitHub Actions branch name.

workflow-name

String

Yes

The GitHub Actions workflow name.

This is the name attribute defined within the target GitHub Actions YAML file.

test-type

String

No

Specifies the test type for generating a job test report. Supported test types are JUnit (junit), TestNG (testng), MSTest (mstest), ProdPerfect (prodperfect), Jmeter (jmeter), Selenium (selenium), Tosca (tosca), Go (go), Jest (jtest), and Playwright (playwright).

test-result-location

String

No

Specifies the test report file location. Accepts pattern matching, such as my-dir/*/my-file.

parameters

JSON

No

Any additional parameters, formatted as JSON data in key/value pairs.

Parameters with spaces in their values can cause errors.

GitLab

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

url

String

No

The GitLab server URL. If not specified, uses https://gitlab.com.

access-token

String

Yes

The GitLab API access token.

trigger-token

String

Yes

The GitLab pipeline API trigger token.

namespace

String

Yes

The GitLab namespace corresponding to the project.

project-name

String

Yes

The GitLab pipeline project name.

branch-name

String

Yes

The GitLab branch name.

parameters

JSON

No

GitLab pipeline parameters, formatted as JSON data in key/value pairs.

Harness

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

url

String

No

The Harness server URL. If not specified, uses https://app.harness.io.

token

String

Yes

The Harness API token.

org-name

String

Yes

The Harness pipeline organization name.

project-name

String

Yes

The Harness pipeline project name.

pipeline-name

String

Yes

The Harness pipeline name.

Jenkins

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

url

String

Yes

The Jenkins server URL.

username

String

Yes

The Jenkins username.

token

String

Yes

The Jenkins token.

job-name

String

Yes

The Jenkins job name.

test-type

String

No

Specifies the test type for generating a job test report. Supported test types are JUnit (junit), TestNG (testng), MSTest (mstest), ProdPerfect (prodperfect), Jmeter (jmeter), Selenium (selenium), Tosca (tosca), Go (go), Jest (jtest), and Playwright (playwright).

test-result-location

String

No

Specifies the test report file location. Accepts pattern matching, such as my-dir/*/my-file.[1]

parameters

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 CloudBees Unify Test insights dashboard.

Table 11. Output details
Output name Data type Description

jenkins_output

JSON string

A JSON string containing the output key/values exposed by the invoked Jenkins pipeline.[2]

[2] 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.

JFrog Pipelines

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

url

String

Yes

The JFrog Pipelines server URL.

token

String

Yes

The JFrog Pipelines token.

pipeline-name

String

Yes

The JFrog Pipelines pipeline name.

project-name

String

No

The JFrog Pipelines project name.

branch-name

String

No

The JFrog Pipelines branch name.

environment-variables

JSON

No

JFrog environment variables, formatted as JSON data in key/value pairs.

TeamCity

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

host

String

Yes

The TeamCity host URL.

token

String

Required if username and password are not specified.

The TeamCity token.

username

String

Required if token is not specified.

The TeamCity username.

password

String

Required if token is not specified.

The TeamCity password.

project-name

String

Yes

The TeamCity project name.

build-type-name

String

Required if the project has multiple builds.

The TeamCity plan name.

branch-name

String

No

The TeamCity branch name.

parameters

JSON

No

Any additional parameters, formatted as JSON data in key/value pairs.