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

Deployment environment checkout task should use same revision as build result

    • 2
    • 1
    • 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.

      The exiting checkout task in deployment environments only updates to the latest revision of the repository, which may not work for all situations.

      Bamboo should provide an option to checkout to the revision that was used in the build result that is linked to the version that is currently being deployed.

      This would keep the source code in sync across build and deploy.

            [BAM-13279] Deployment environment checkout task should use same revision as build result

            Right now I don't think I can use the checkout task for a deployment task, as I need to 

            1. checkout a specific branch (also using the branch in my deployment environment trigger)
            2. checkout the specific version that was used in the triggering build

            Current alternated that I'm looking at:

            1. Using a script task and bamboo variables like: bamboo_planRepository_revision and  bamboo_planRepository_branch - seem like something the checkout source code task should support out-the-box.
            2. Bundling up my source as an artifact and using that in my deploy plan (not a terrible solution)

            Richard Sheldon added a comment - Right now I don't think I can use the checkout task for a deployment task, as I need to  checkout a specific branch (also using the branch in my deployment environment trigger) checkout the specific version that was used in the triggering build Current alternated that I'm looking at: Using a script task and bamboo variables like: bamboo_planRepository_revision and  bamboo_planRepository_branch - seem like something the checkout source code task should support out-the-box. Bundling up my source as an artifact and using that in my deploy plan (not a terrible solution)

              Unassigned Unassigned
              jdumay James Dumay
              Votes:
              29 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated: