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

Setting custom PATH on a task for a remote agent, the PATH environment variable is being overwritten when the task launches by the remote agents' own path

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 3.1.4, 3.2 M3, 3.2
    • 3.1.3
    • Bamboo Release
    • None
    • standalone
      Windows XP x86
      JDK 1.6.0_12

      I just installed 3.1.3 and upgraded from Bamboo 3.0.
      I was working on a new script to take advantage of the Task system that was added in the new version.

      It happens on an Ant task on the first stage of a build job.

      On the Task Configuration dialog on the optional line for Environment Variables I specify a few custom environment variables and I also specify a custom Path variable to accomodate different build environments on different projects.

      When I tell the plan to run it fails because some tools can't be found in the path. In the build log I can see that the "Path" variable has been set twice and it looks like the second time it's being set it's overwriting the custom path data I had specified.

            [BAM-9067] Setting custom PATH on a task for a remote agent, the PATH environment variable is being overwritten when the task launches by the remote agents' own path

            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2016 v1 - Restricted [ 1434441 ] New: JAC Bug Workflow v3 [ 3384137 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: Bamboo Workflow 2016 v1 [ 1408361 ] New: Bamboo Workflow 2016 v1 - Restricted [ 1434441 ]
            Marek Went (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2014 v2 [ 608854 ] New: Bamboo Workflow 2016 v1 [ 1408361 ]
            James Dumay made changes -
            Workflow Original: Bamboo Workflow 2014 [ 598606 ] New: Bamboo Workflow 2014 v2 [ 608854 ]
            James Dumay made changes -
            Workflow Original: Bamboo Workflow 2010 [ 303082 ] New: Bamboo Workflow 2014 [ 598606 ]
            Marcin Gardias made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: To be reviewed [ 10026 ] New: Resolved [ 5 ]
            Marcin Gardias made changes -
            Link New: This issue duplicates BAM-8990 [ BAM-8990 ]
            Marcin Gardias made changes -
            Status Original: In Progress [ 3 ] New: To be reviewed [ 10026 ]
            Marcin Gardias made changes -
            Fix Version/s New: 3.1.4 [ 18703 ]
            Marcin Gardias made changes -
            Assignee New: Marcin Gardias [ mgardias ]

              mgardias Marcin Gardias
              0a53eeb4b62d Jay Barra
              Affected customers:
              1 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: