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.

            There are no comments yet on this issue.

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

                Created:
                Updated: