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

Deployment -- branch deployment ignores Release Version rules

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 6.1.0
    • 5.5.1, 5.7.2, 5.6.2, 5.12.3.1
    • Deployments
    • None

      Scenario Description:
      1. We set up a custom variable AQRVersion (1.jpg) on the plan level which is used in conjunction with ${bamboo.buildNumber} for generating a Microsoft-style software version, $(bamboo.AQRVersion}.${bamboo.buildNumber} for passing it to the Deployment project. (2.jpg)
      2. For the master(trunk) build it works just fine - the release version equals to the software version (3.jpg) 
      
      Something completely unexpected happens for branch builds (the idea is, of course to have a continuous deployments within the same project).
      1. In GitHub we create a release branch "Release1.1", and Bamboo does a great job detecting it and setting up a branch build plan.  In this branch, we override the AQRVersion with the new minor release bump (4.jpg)
      2. The deployment project's Release Version rules remain unchanged, and are $(bamboo.AQRVersion}.${bamboo.buildNumber} (2.jpg)
      3. We switch the deployment project to release from branch. (5.jpg)
      4. BUG: Bamboo completely ignores the Release Version rule set up in Deployment Project, and proceeds to use "{Branch Name}, INJECTS A DASH, and then adds ${bamboo.buildNumber}"  (6.jpg, 7.jpg).
      
      Please fix it to be consistent, and not to ignore the Release Version rules when releasing automatic branches.
      
      

        1. 1.jpg
          1.jpg
          93 kB
        2. 2.jpg
          2.jpg
          105 kB
        3. 3.jpg
          3.jpg
          27 kB
        4. 4.jpg
          4.jpg
          90 kB
        5. 5.jpg
          5.jpg
          74 kB
        6. 6.jpg
          6.jpg
          86 kB
        7. 7.jpg
          7.jpg
          56 kB
        8. 7.jpg
          7.jpg
          55 kB

          Form Name

            [BAM-14891] Deployment -- branch deployment ignores Release Version rules

            Bamboo 6.7.1 is still affected

            Tomasz Belina added a comment - Bamboo 6.7.1 is still affected

            In the upcoming Bamboo 6.1 there's going to be an option to apply the same naming scheme to all the branches

            Marcin Gardias added a comment - In the upcoming Bamboo 6.1 there's going to be an option to apply the same naming scheme to all the branches

            Oh, wait, that's a three-year interest commitment for me...

            Andrew Bilukha added a comment - Oh, wait, that's a three-year interest commitment for me...

            Me too: Here's my one-year-later renewed interest in having this fixed – PLEASE FIX IT!  

            Andrew Bilukha added a comment - Me too: Here's my one-year-later renewed interest in having this fixed – PLEASE FIX IT!  

            Here's my one-year-later renewed interest in having this fixed – PLEASE FIX IT!  

            Boris Capitanu added a comment - Here's my one-year-later renewed interest in having this fixed – PLEASE FIX IT!  

            Please fix this!

             

            spiraltest added a comment - Please fix this!  

            Michele added a comment -

            Please fix this, to have a consistent versioning across the same deployment project.

            Michele added a comment - Please fix this, to have a consistent versioning across the same deployment project.

            Please fix this, it's a trivial update to the code.

            Andrew Bilukha added a comment - Please fix this, it's a trivial update to the code.

            PLEASE fix this...

            Boris Capitanu added a comment - PLEASE fix this...

            Ron Chan added a comment -

            Ron Chan added a comment - Not a new issue https://jira.atlassian.com/browse/BAM-14886

            Also experiencing this issue, only able to access the version from the primary branch, the rest get assigned <branchname>-<buildnum>

            Nathaniel Currier added a comment - Also experiencing this issue, only able to access the version from the primary branch, the rest get assigned <branchname>-<buildnum>

            We to have seen this issue and we also think the release number should be consistent across all branches, just not the main/default branch

            David Weiner added a comment - We to have seen this issue and we also think the release number should be consistent across all branches, just not the main/default branch

            FlorinM added a comment -

            I'm also running into this, but on the "Create release" dialog.
            When selecting a branch other than master it decides on its own that it should use <branch-name>-<buildNumber> as the release name.
            The workaround in this case is to just input the versioning rule as the name.

            FlorinM added a comment - I'm also running into this, but on the "Create release" dialog. When selecting a branch other than master it decides on its own that it should use <branch-name>-<buildNumber> as the release name. The workaround in this case is to just input the versioning rule as the name.

              mgardias Marcin Gardias
              13a993b96b56 Andrew Bilukha
              Affected customers:
              34 This affects my team
              Watchers:
              30 Start watching this issue

                Created:
                Updated:
                Resolved: