How to configure Bamboo plan?
...
1. Click on Create > Create a new plan
Image Removed
Image Added
2. Provide necessary information
Image Removed
Image Added
3. Select source repository of your test code and provide login details. Select your repository and click configure plan.
Image Removed
Image Added
This will add Source code checkout task.
Image Removed
Image Added
4. Now add task Maven/Ant/Command to execute the source code. In this example i have added Maven and provided goal "integration-test" as defined in my JBehave project configuration.
Image Removed
Image Added
Image Removed
Image Added
Image Removed
Image Added
5. Now add JBehave parser task to parse results generated by above task.
Image Removed
Image Added
Image Removed
Image Added
6. If you want to integrate JBehave test results parsed in Bamboo to be integrated in JIRA as well so that JIRA users can see all information in issue itself, enable JIRA settings. Enable the actions you want to be performed in JIRA issue.
Image Removed
Image Added
Image Removed
Image Added
Image Removed
Image Added
7. Run plan
Image Removed
Image Added
Build Result Summary:
Image Removed
Image Added
JBehave Scenarios as Tests in Bamboo:
Image Removed
Image Added
Logs in Bamboo:
Image Removed
Image Added
Image Added
Enhanced JBehave Tab:
Image Added
Image Removed
Now, you may want to see JBehave html results attached to the build. This is quick and easy.
Click on configure plan.
Image Removed
Image Added
How to add artifacts?
1. Click on the last job. in our example we have just one job ("Default Job").
Image Removed
Image Added
2. Click on Artifacts tab.
3. Click on create definition
Image Removed
Image Added
4. Give appropriate name
5. In copy pattern textbox enter **/target/jbehave/**
6. Click on save.
Image Removed
Image Added
Image Removed
Image Added
7. Run the plan and you will see all the JBehave html reports attached to the build.
Image Removed
Image Added
Image Removed
Image Added
Image Removed
Image Added
Image Removed
Image Added
Image Removed
Image Added
Image Removed
Image Added
If you have enabled JIRA options in JBehave parser task, you should see lot of information to JIRA issues. This plugin find JIRA issue ids in scenario names. Please have a look at story above. If scenario names does not contain JIRA issues id, the plugin will not update the issue id.
Image Removed
Image Added
Test run links
Image Removed
Image Added
Labels in JIRA:
Image Removed
Image Added
Comments in JIRA:
Image Removed
Image Added
JBehave tab in Bamboo build result summary:
Image Removed
Image Added