Including Commit history and JIRA tickets in Bamboo built deployments.

For our CI builds, we are trying to include an automatically generated commits since last deployment and associated JIRA tickets.


This information we want to include in out setup package is available in Bamboo at the following pages:

http://our-bamboo:8085/deploy/viewDeploymentVersionCommits.action?versionId=18546718&deploymentProjectId=19267585

http://our-bamboo:8085/deploy/viewDeploymentVersionJiraIssues.action?versionId=18546718&deploymentProjectId=19267585

What I am trying to do is automate a download of these reports to include as offline HTML files in our build package for our integration testers to see what's changed. I can't seem to work out how to get the versionID and deploymentProjectID using Bamboo's variables.

Anyone achieved this? Is there an easier way to do this?


Many thanks.

1 answer

You can certainly use those actions via rest and redirect to a file on disk that is included as a shared artifact. You'd have to script it and unless you really like scripting it wouldn't be much fun.

I don't know of any easier way to do this.

We have a plugin (internally written) that does a svn diff and echoes the output to the log files to list the specific files included in the deployment. See this list: https://confluence.atlassian.com/display/BAMBOO/Bamboo+variables

and https://confluence.atlassian.com/display/BAMBOO/Variables+for+deployment+environments

for lists of variables available to you.

I have a list of rest notes that includes this:

For example this:
.../rest/api/latest/result/PRJ-PLAN.json
will get you a list of builds which (if you were really clever with scripting and regex) could be used with this:
.../rest/api/latest/result/PRJ-PLAN-BLD.json?expand=jiraIssues
to get the individual issues for each build. Again extracting them from all the other stuff that is delivered in that result.

that may help you get started with rest.

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,077 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