You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
Hi, guys. I need to execute own shell file from project folder to deploy remote server something like this.
image: node:10.4.1
pipelines:
default:
- step:
caches:
- node
script: # Modify the commands below to build your repository.
- deploy.sh
deployment: production
But the result is:
Anything would help!
Thank you,
Hi tuguldur,
You can run a shell file in Pipelines.
The quickest fix:
Change your command to
/bin/bash deploy.sh
if it fails due to bash not existing, then instead use
/bin/sh deploy.sh
More detail below:
You can check that it is an executable with:
ls -l
If you're not familiar with Linux file permissions, you just want to see an 'x' character in this output:
-rwxr-xr-x 1 user group 1531 18 Sep 2017 deploy.sh
If it is marked as an executable, you can change your command to:
./deploy.sh
If it is not marked as an executable, you can run it straight through /bin/bash or /bin/sh (as above).
Thanks,
Phil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi everyone, We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.