Bamboo and Cucumber

Do anyone has any idea on how to set-up cucumber test in bamboo ? and can anyone help on how to use tags in Bamboo ?

We have a set-up where if we try to run it locally then it works but when we try to run it using Bamboo the build always hungs and becomes never ending.

Any detailed note on this will be very helpful.

 

Thank you

 

Regards,

Susant

3 answers

You can create Bamboo plan with following tasks

Source Checkout Task: To checkout source code

Maven Task: To build project and run cucumber scenarios

Cucumber for Bamboo task: To parse cucumber scenarios as test in Bamboo, use Cucumber tags to control build status and integrate results with JIRA

https://sites.google.com/site/autotestingtools/cucumber-task-for-bamboo

0 vote

Hello Susant,

Thank you for your question.

If running a Source Code Checkout task from a Stash repository, you could add a Script task with the following:

git tag -a "${bamboo.buildNumber}" -m "${bamboo.planName} build number ${bamboo.buildNumber}"

git remote add remote http://[USERNAME]:[PASSWORD]@[STASH-BASE-URL]/scm/sup/[REPOSITORY].git

git push --tags remote ${bamboo.buildNumber}

git remote rm remote

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

Kind regards,
Rafael P. Sperafico
Atlassian Support

0 vote
Volodymyr Krupach Community Champion Feb 18, 2015

You need to check logs from bamboo and cucumber.

Logs in Bamboo: https://confluence.atlassian.com/display/BAMBOO/Viewing+a+build+log

This could be useful to get more info from cucumber: http://stackoverflow.com/questions/1060754/how-to-make-cucumber-show-full-rails-error-message

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,096 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot