Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting JIRA variables into Bamboo

Andrew Benz April 19, 2012

I'm trying to set up a build that runs automatically after checkins into SVN. The build plan has four stages, the fourth of which will be manual, and that I want to be triggered from a JIRA release. The first task in this step is to create an SVN tag using the JIRA version and the bamboo build number.

Most of this is set up and working correctly, except that the JIRA version is not pulled into Bamboo. In the 'tag name' field in the VCS Tagging task, I have '${bamboo.jira.version}.${bamboo.buildNumber}' because I want something like 1.2.3.423, where 1.2.3 is the JIRA version number and 423 is the bamboo build number.

When I release the version from JIRA, the tag is created in SVN, but the tag name has the words ${bamboo.jira.version} in it. The following is the log file for this task:

simple19-Apr-2012 13:16:35Build <<<build_tag>>>-105 started building on agent Default Agent

simple19-Apr-2012 13:16:35Build working directory is C: Program Files Atlassian Application Data Bamboo xml-data build-dir <<<build_tag>>>

simple19-Apr-2012 13:16:35Executing build <<<build_tag>>>-105

simple19-Apr-2012 13:16:35Preparing artifact for use: Deployment Bundle

simple19-Apr-2012 13:16:44Artifact Deployment Bundle prepared in 0:00:08.593

simple19-Apr-2012 13:16:44Preparing artifact for use: Smoke Tests

simple19-Apr-2012 13:16:48Artifact Smoke Tests prepared in 0:00:03.944

simple19-Apr-2012 13:16:48Running pre-build action: Build Number Stamper

simple19-Apr-2012 13:16:48Running pre-build action: Clover Grails PreBuild Action

simple19-Apr-2012 13:16:48Running pre-build action: VCS Version Collector

simple19-Apr-2012 13:16:48Running pre-build action: Repository Isolation Enabler Action

simple19-Apr-2012 13:16:48Running pre-build action: Maven Settings Prebuild Action

command19-Apr-2012 13:16:48Substituting variable: ${bamboo.buildNumber} with 105

simple19-Apr-2012 13:16:48Starting task 'VCS Tagging' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.tagging'

simple19-Apr-2012 13:16:48Copying repository <<<svn_root_url>>>/trunk to <<<svn_root_url>>>/tags/$%7Bbamboo.jira.version%7D.105 at revision 3581

simple19-Apr-2012 13:16:48Finished task 'VCS Tagging'

1 answer

0 votes
James Dumay
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 27, 2012

Hi Andrew, are you using a Manual Stage? There was a bug recently that prevented the JIRA variables being set when a manal stage was in used. I'm told by our development team that this is fixed in Bamboo 4.1 (shipping this week).

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25 europe, atlassian event, barcelona 2025, jira, confluence, atlassian intelligence, rovo, ai-powered collaboration, developer tools, agile teams, digital transformation, teamwork solutions, atlassian conference, product announcements

🌆 Team '25 Europe registration is now open!

Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.

Register now
AUG Leaders

Atlassian Community Events