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'
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).
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 nowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.