Hi,
I have multiple deployment processes that run a (Shell - inline) script that starts with:
# a comment
if [[ ${bamboo_countryFile} =~ ^test ]]; then
.
..
...
and does an rsync at the end...
Sometimes I get the errors:
'#' is not recognized as an internal or external command, operable program or batch file.
${bamboo_countryFile} was unexpected at this time.
Or
Host key verification failed.
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(605) [sender=3.0.9]
The script is set on multiple deployment environments and the errors occur randomly on most of the environments when run concurrently, such as being triggered from a successful build/deployment. However, they are usually ok with no errors when the environments are run manually individually.
Thanks.