I noticed when using the scp task in bamboo the file permissions are not being copied to the remote machine, it appears every file receives a 644 mode when copied by the scp task.
Even if a file is set 777 within the Bamboo server working directory, it will receive permissions 644 after being scp'ed to the remote machine. Is this normal behaivor? I don't see it on the SSH task documentation