Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-1272

Bamboo and tagged releases - ability to do one-off builds from a specific tag in the repository.

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • None
    • Builds, Triggers
    • None
    • 0
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Currently, Bamboo can only build off the trunk of the repository. Bamboo should be able to perform one-off build from tagged version of a project

      Originally a forum post (See, http://forums.atlassian.com/thread.jspa?messageID=257247884#257247884)

      Hi all,

      This is no doubt a perversion of Bamboo's intended use, but what
      would be really useful for us would be the ability to create a one-
      off build based on a tagged version of a project.

      Here's the ideal setup:

      1. Create a project ('FOO').
      2. Create a plan ('BAR') which points at the SVN trunk for the project:
      http://svn.myserver.com/svn/foo/bar/trunk
      3. Elsewhere, create a tag of the 'BAR' project (eg. '1.0').
      http://svn.myserver.com/svn/foo/bar/tags/1.0
      4. Back in Bamboo, I click the new 'Tags' tab in the Plan UI. It
      automatically lists all tags for the project, and will allow me to
      run the current build with the same settings as the current Plan,
      except that it's pointing at the tag instead of the trunk. All
      standard Bamboo events will occur, including generation of artifacts,
      etc.

            [BAM-1272] Bamboo and tagged releases - ability to do one-off builds from a specific tag in the repository.

            One-off builds for any revision (including branches and tags) are possible with "Run customised" for any plan.

            Krystian Brazulewicz added a comment - One-off builds for any revision (including branches and tags) are possible with "Run customised" for any plan.

            Hello, we would also require this functionality in order to provide certain snapshot builds. This should also factor in with BAM-11544 to support the tagged build over several repositories used in the same build plan (obviously all tags would have the same name).

            Jan Swaelens added a comment - Hello, we would also require this functionality in order to provide certain snapshot builds. This should also factor in with BAM-11544 to support the tagged build over several repositories used in the same build plan (obviously all tags would have the same name).

            I built a plugin a while back that does most of these things:

            http://confluence.atlassian.com/display/BAMEXT/Bamboo+Tag+Build+Plugin

            The 'official' release is a bit behind - only supports Bamboo 1.2, but the version in SVN trunk should work against the latest Bamboo (2.1 at least), we just haven't had time to do a test/release on it yet.

            http://svn.atlassian.com/svn/public/contrib/bamboo/bamboo-tagbuild-plugin/trunk/

            It adds a 'Tags' tab to your project which lists any tags for your project and whether any builds have already been run against that tag. You can always run another build if you want, or link to an existing one directly.

            It currently doesn't support branches, but it wouldn't be too hard to add the functionality.

            The other main restriction is that it currently only supports SVN. Adding CVS, etc would be nice, but we haven't had time to dig into the API for that either...

            David Peterson added a comment - I built a plugin a while back that does most of these things: http://confluence.atlassian.com/display/BAMEXT/Bamboo+Tag+Build+Plugin The 'official' release is a bit behind - only supports Bamboo 1.2, but the version in SVN trunk should work against the latest Bamboo (2.1 at least), we just haven't had time to do a test/release on it yet. http://svn.atlassian.com/svn/public/contrib/bamboo/bamboo-tagbuild-plugin/trunk/ It adds a 'Tags' tab to your project which lists any tags for your project and whether any builds have already been run against that tag. You can always run another build if you want, or link to an existing one directly. It currently doesn't support branches, but it wouldn't be too hard to add the functionality. The other main restriction is that it currently only supports SVN. Adding CVS, etc would be nice, but we haven't had time to dig into the API for that either...

            It would need to be configurable to work with branches etc (tag and branch are arbitrary names) and should integrate with triggering abilities.
            Right now I have to jump through hoops to get bamboo to do a build of a branch or tag:
            1) I have a pre-build script that takes the svn revision as an argument
            2) it searches for our internal naming convention of branches/xxx/yyy
            3) it finds the root of the branch based on these assumptions
            4) it wipes what bamboo just checked out (trunk) and replaces it with the appropriate branch
            5) runs ant

            The key to all of this is having some kind of mechanism to deal with doing a build off of something other than one static path

            Siri Vias Khalsa added a comment - It would need to be configurable to work with branches etc (tag and branch are arbitrary names) and should integrate with triggering abilities. Right now I have to jump through hoops to get bamboo to do a build of a branch or tag: 1) I have a pre-build script that takes the svn revision as an argument 2) it searches for our internal naming convention of branches/xxx/yyy 3) it finds the root of the branch based on these assumptions 4) it wipes what bamboo just checked out (trunk) and replaces it with the appropriate branch 5) runs ant The key to all of this is having some kind of mechanism to deal with doing a build off of something other than one static path

              Unassigned Unassigned
              asridhar AjayA
              Votes:
              36 Vote for this issue
              Watchers:
              26 Start watching this issue

                Created:
                Updated:
                Resolved: