Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

executing scripts remotely at server from pipeline

examplesbdev example March 26, 2020

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

 

Downloaded newer image for cmd.cat/envsubst:latest

envsubst < /home/centos/deploy.sh > deploy-out.sh

<1s+ envsubst < /home/centos/deploy.sh > deploy-out.shbash: /home/centos/deploy.sh: No such file or directory

1 answer

0 votes
Asim Saleem
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 28, 2020

did you found any solution?

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events