Hi everyone. I'm trying to run a batch file (.bat) on a windows server from the bitbucket pipeline by using ssh-run pipe.
- pipe: atlassian/ssh-run:0.2.5
Pipeline status is successful at the end but the server.bat is not executed on windows server. (if I run server.bat manually on windows it will work)
//Edit: just understand this question is asked in the wrong place but don't know how to move or delete it.
@Naeim Fard do you still have the problem with the pipe? You can add tag pipes , if it is related to Bitbucket Pipeline Pipes
As for your question, I think, for ssh-run we support bash and do not support windows servers. Though, this is a good idea for custom pipe , you can look at the Guide how to create it .
@Diogo Borgeswe support things that are available in the image you use.
If you use atlassian default-image 2, there will be bash and sh.
You can use also mcr.microsoft.com/powershell image - there is pwsh , bash, sh.
Look at the screenshot attached, I've just tried that pwsh shell is also available, just like sh.
You can also use them as /bin/sh , /bin/pwsh, etc.
Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events