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

Pass the build-specific variables automatically into environment variables (like plan/global variables do)

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

      Steps to reproduce:

      1) create plan, script task:

      echo $bamboo_buildResultKey
      echo $bamboo_buildNumber
      

      2) run the plan
      3a) expected result (in the logs) is to see something like

      PROJ-PLAN-JOB1-1
      1
      

      3b) while current behavior is:

      
      

      (these environment variables are undefined, that's why we see empty logs)

      Seems we pass the plan/global variables into the environment:

      But we don't do that for built-in variables like:

      • ${bamboo.buildPlanName}
      • ${bamboo.buildKey}
      • ${bamboo.buildNumber}
      • ${bamboo.buildResultKey}
      • ${bamboo.buildTimeStamp}
      • ${bamboo.repository.revision.number}
      • ${bamboo.build.working.directory}
        etc...

            [BAM-11824] Pass the build-specific variables automatically into environment variables (like plan/global variables do)

            Katherine Yabut made changes -
            Workflow Original: JAC Suggestion Workflow [ 3017797 ] New: JAC Suggestion Workflow 3 [ 3602996 ]
            Status Original: RESOLVED [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing v4 [ 2698821 ] New: JAC Suggestion Workflow [ 3017797 ]
            Owen made changes -
            Issue Type Original: Improvement [ 4 ] New: Suggestion [ 10000 ]
            Owen made changes -
            Workflow Original: Bamboo Workflow 2016 v1 [ 1409964 ] New: Confluence Workflow - Public Facing v4 [ 2698821 ]
            Marek Went (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2014 v2 [ 606410 ] New: Bamboo Workflow 2016 v1 [ 1409964 ]
            Anthony Williams made changes -
            Link New: This issue causes BAM-15017 [ BAM-15017 ]
            Anthony Williams made changes -
            Link Original: This issue has a regression in BAM-15017 [ BAM-15017 ]
            Anthony Williams made changes -
            Link New: This issue has a regression in BAM-15017 [ BAM-15017 ]
            Marcin Gardias made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]
            Marcin Gardias made changes -
            Link New: This issue is duplicated by BAM-14218 [ BAM-14218 ]

              mgardias Marcin Gardias
              pstefaniak PiotrA
              Votes:
              85 Vote for this issue
              Watchers:
              61 Start watching this issue

                Created:
                Updated:
                Resolved: