Use this action to run a project with Atlassian Bamboo, a CI/CD server.
Input name | Data type | Required? | Description |
---|---|---|---|
|
String |
Yes |
The Bamboo server URL. |
|
String |
Yes |
The Bamboo username. |
|
String |
Yes |
The Bamboo password. |
|
String |
No |
The Bamboo project name. |
|
String |
No |
The Bamboo plan name. |
|
String |
Yes |
The action type.
Supported types are |
|
String |
No |
The Bamboo branch name. |
|
String |
Required only for |
The Bamboo deploy project name. |
|
String |
Required only for |
The Bamboo release name. |
|
String |
Required only for |
The Bamboo environment 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 |
In your YAML file, add:
jobs:
build:
steps:
- name: Run Bamboo build action type
uses: cloudbees-io/bamboo-run-project@v2
with:
url: ${{ vars.BAMBOO_URL }}
username: ${{ secrets.BAMBOO_USERNAME }}
password: ${{ secrets.BAMBOO_PASSWORD }}
project-name: Product_A
plan-name: My_plan
invoke-type: build
test-type: Junit
test-result-location: /test-result
- name: Run Bamboo release action type
uses: cloudbees-io/bamboo-run-project@v2
with:
url: ${{ vars.BAMBOO_URL }}
username: ${{ secrets.BAMBOO_USERNAME }}
password: ${{ secrets.BAMBOO_PASSWORD }}
project-name: Product_A
plan-name: My_plan
deploy-project-name: product_A_My_plan_deploy
release-name: product_A_My_plan_release
invoke-type: release
- name: Run bamboo deploy action type
uses: cloudbees-io/bamboo-run-project@v2
with:
url: ${{ vars.BAMBOO_URL }}
username: ${{ secrets.BAMBOO_USERNAME }}
password: ${{ secrets.BAMBOO_PASSWORD }}
deploy-project-name: product_A_My_plan_deploy
release-name: product_A_My_plan_release
env-name: dev
invoke-type: deploy
This code is made available under the MIT license.
-
Learn more about using actions in CloudBees workflows.
-
Learn about the CloudBees platform.