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
- Create a docker image that contains a script [that doesn't exist in the agent environment]
- Create a Job containing a ScriptTask that calls that script.
- 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.
Workaround
The error is informational only and the task will continue even though the message is included in the logs.