Hi, i have a problem with the after_deploy and before_deploy scripts. I try to execute a sh script both from the deployments tab and from the configuration on yml file, but in none of the cases they are executed. Are there any restrictions on running sh scripts?
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac

#1 Posted by Feodor Fitsner Support staff on 21 Aug, 2020 08:12 PM
Hi Bartolomeo,
Shscripts are running in Linux builds only. However, you should be able to chooseCmdand run your script with.shextension "as is".#2 Posted by Bartolomeo Amic... on 24 Aug, 2020 09:44 AM
Hi Feodor.
So I just have to put such a string in my yaml file?
before_deploy
- cmd: path_of_my_script.sh
My script should be hosted wherever i want?
Thanks for the reply
#3 Posted by Feodor Fitsner Support staff on 24 Aug, 2020 06:03 PM
Hi Bartolomeo,
Deployment script should be in the repository.
#4 Posted by Bartolomeo Amic... on 26 Aug, 2020 09:27 AM
Hi Feodor.
i put my sh script on the repository project, but when i try to execute in after_deploy step, with the cmd tag, i recieve an error code 127. Can you support me on this?
Thank you
#5 Posted by Feodor Fitsner Support staff on 26 Aug, 2020 11:38 PM
It must be something wrong with the script itself. Here I'm running
test.shbefore deploy and it works: https://ci.appveyor.com/project/FeodorFitsner/simple-console/builds...Feodor Fitsner closed this discussion on 27 Oct, 2020 09:03 PM.