Hi,
I am also facing the same issue. I am trying to execute a script which will run remotely in a server using SSH-run pipe module at /home/centos/. The execute permission is available to the script. Can you please help in this regard?
---
image:
name: python:3.5.1
test: &test
step:
name: Connecting to CCM to run salt commands
script:
- docker run cmd.cat/envsubst envsubst
- envsubst < /home/centos/deploy.sh > deploy-out.sh
- pipe: atlassian/ssh-run:0.2.2
variables:
SSH_USER: '${STAGE_USER}'
SERVER: '${STAGE_SERVER}'
MODE: 'script'
COMMAND: 'deploy-out.sh'
pipelines:
branches:
develop:
- <<: *test
qa-*:
- <<: *test
<span>Downloaded newer image for <a href="http://cmd.cat/envsubst:latest" target="_blank" rel="noopener nofollow noreferrer">cmd.cat/envsubst:latest</a></span>
envsubst < /home/centos/deploy.sh > deploy-out.sh
<1s<span>+ envsubst < /home/centos/deploy.sh > <a href="http://deploy-out.sh/" target="_blank" rel="noopener nofollow noreferrer">deploy-out.sh</a></span><span>bash: /home/centos/deploy.sh: No such file or directory</span>