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 Sign up to answer
Community showcase
Published 6 hours ago in Jira Ops

Jira Ops Early Access Program Update #2: Let’s talk severity levels

Welcome to your weekly Jira Ops Early access program update, where we’re sharing news and updates on Jira Ops' progress as we work toward our 1.0 release. If you ever want to drop us feedback or idea...

19 views 0 0
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