Bamboo integration
![Bamboo0.png 780](https://files.readme.io/1c8410c-Bamboo0.png)
In order to integrate your tests with Bamboo, first you need to have Node.js (version >= 6.0.0) installed on the Bamboo server or one of its agent machines.
Now, just follow these steps:
1. Create a New plan in Bamboo:
![Bamboo2.png 661](https://files.readme.io/0faedb6-Bamboo2.png)
1.1. Enter plan name (e.g. "Testim Tests"), choose repository host "None" and click "Configurate plan":
![Bamboo3.png 1016](https://files.readme.io/fa42a83-Bamboo3.png)
1.2. Select "Yes please!" checkbox under "Enable this plan?" section:
![Bamboo4.png 643](https://files.readme.io/73d02b0-Bamboo4.png)
2. Add install Testim CLI task:
2.1. Click on "Add task":
2.2. Choose "npm" task:
![Bamboo5.png 903](https://files.readme.io/71b903a-Bamboo5.png)
2.3. Enter task description (e.g "Install Testim CLI")
2.4. Choose existing Node.Js executable or add new with Node.Js path
![Bamboo6.png 552](https://files.readme.io/2348387-Bamboo6.png)
2.5. Insert Command:
install -g @testim/testim-cli
2.6. Click "Save":
![Bamboo7.png 611](https://files.readme.io/663eab3-Bamboo7.png)
3. Add run Testim CLI task:
3.1. Click on "Add task":
3.2. Choose "Command" task:
![Bamboo8.png 879](https://files.readme.io/e6c0d23-Bamboo8.png)
3.3. Enter task description (e.g "Run Testim CLI")
3.4. Choose existing "Testim CLI" executable or add a new "Testim CLI" executable:
![Bamboo9.png 555](https://files.readme.io/5d5f0ba-Bamboo9.png)
3.5. Insert argument:
--label "<YOUR LABEL>" --token "<YOUR ACCESS TOKEN>" --project "<YOUR PROJECT ID>" --grid "<Your grid name>" --report-file ${bamboo.build.working.directory}/testim-tests-${bamboo.buildNumber}-report.xml
Note: For the grid name, read here how to set up your grid.
3.6. Click "Save":
![Bamboo10.png 620](https://files.readme.io/9ae3664-Bamboo10.png)
4. Add collect test results task
4.1. Click on "Add task":
4.2. Choose "JUnit Parser" task:
![Bamboo11.png 885](https://files.readme.io/7736c24-Bamboo11.png)
4.3. Enter task description (e.g "Collect Testim Results")
4.4. Insert "Specify custom results directories":
**/testim-tests-*-report.xml
4.5. Click "Save":
![Bamboo12.png 607](https://files.readme.io/88541f8-Bamboo12.png)
5. Click on "Create"
![Bamboo13.png 1006](https://files.readme.io/8e543c5-Bamboo13.png)
![Bamboo14.png 1304](https://files.readme.io/f4235cf-Bamboo14.png)
6. Run Plan
6.1. Click on Run button
![Bamboo15.png 451](https://files.readme.io/cde9d6d-Bamboo15.png)
6.2. Wait until plan finished
6.2. Check Tests results
![Bamboo16.png 488](https://files.readme.io/6f346c1-Bamboo16.png)
Updated over 2 years ago