Issue Summary

      When running a ScriptTask Bamboo will check to see if the file being run exists and whether it is executable. If the file can not be found or is not executable an error message is written to the job log. Prior to the change in BAM-19778 this was only reported in the agent application logs.

      The check for the existence of the file is made within the context of the remote agent.
      This check is inappropriate if a docker environment is specified to run the task as the file needs to exist within the docker context not the agents.

      Steps to Reproduce

      1. Create a docker image that contains a script [that doesn't exist in the agent environment]
      2. Create a Job containing a ScriptTask that calls that script.
      3. Run the Job and specify that it should run using the custom docker image.

      Expected Results

      The error should only be reported if the file does not exist or is not executable within the docker context.

      Actual Results

      The following error is seen in the Build log.

      File [/path/to/script] doesn't exist, trying to run [/path/to/script] anyway.
      

      Workaround

      The error is informational only and the task will continue even though the message is included in the logs.

            [BAM-20228] Invalid check for file existence when using Docker run.

            SET Analytics Bot made changes -
            UIS Original: 1 New: 0
            SET Analytics Bot made changes -
            UIS New: 1
            Pawel Skierczynski made changes -
            Status Original: Gathering Impact [ 12072 ] New: Long Term Backlog [ 12073 ]
            Pawel Skierczynski made changes -
            Status Original: Needs Triage [ 10030 ] New: Gathering Impact [ 12072 ]
            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2016 v1 - Restricted [ 3079456 ] New: JAC Bug Workflow v3 [ 3382822 ]
            Status Original: Open [ 1 ] New: Needs Triage [ 10030 ]
            Bugfix Automation Bot made changes -
            Support reference count New: 1
            Pawel Skierczynski made changes -
            Labels New: bamboo-bugfix-kanban-candidate
            Pawel Skierczynski made changes -
            Occurrence Factor New: 10% [ 12830 ]
            Status Original: Needs Triage [ 10030 ] New: Open [ 1 ]
            Chris Berry (Inactive) created issue -

              Unassigned Unassigned
              cberry@atlassian.com Chris Berry (Inactive)
              Affected customers:
              1 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated: