Bamboo Integration
Zephyr for Jira is now Zephyr Squad! Read more about this. |
---|
About integration
Integration with Jenkins means that you can create and update automation tasks from your Bamboo jobs, and send test results to Zephyr for Jira from these jobs.
To do this, you use script code that sends API requests to Zephyr for Jira. This page explains how you can call this script from a Bamboo job.
Requirements
To configure Bamboo jobs, you need appropriate permissions for your Bamboo projects.
The Bamboo agent computers, where the integration code will run, should have access to Internet and your Jira project.
Integration Steps
1. Prepare sample script
You can either write the integration script from scratch, but we’d recommend editing an example script.
You can find it as well as information on the changes to be done in the following topic:
Make sure to replace constants in this script – access key, user ids, project keys, result file name, and others – with the data relevant to your Zephyr project.
2. Configure your Bamboo plan and jobs
Log in to Bamboo, and go to your project and plan.
On the plan screen, select Actions > Configure plan from the menu on the right:
Select the stage and job to open the job editor.
In the job editor, click Add task to append a new ask to the job:
In the subsequent dialog box, type script in the search box (we will need this task), and then click Script to add the Script task to the job:
In the task property editor:
- Specify the task description.
- In the Interpreter box, select Shell.
- From the Script location drop-down, select File.
- In the Script file box, enter your script file name.
- Save the changes.You will see the new task in your job.
It’s important that the integration script runs after the build and automated tests are over. A good practice to do this is to put tasks to the “Final tasks” section.
To do this, simply drag the script task to Final tasks in the task editor:
That’s all. Now when you run your plan, the script will create (or update) an automation task in Zephyr and attach test results to it.
Starting Release 8.2, Zephyr Enterprise documentation is moving from its current location on Atlassian to a dedicated, standalone Zephyr Enterprise Documentation page. https://support.smartbear.com/zephyr-enterprise/docs/en/welcome-to-zephyr-enterprise.html