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
variables:
SSH_USER: $VPS_USERNAME
SERVER: $VPS_IP
COMMAND: 'C:\path\server.bat'
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 .
Regards, Galyna
Are there no plans to support windows servers?
Or at least support SH instead of BASH?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
Regards, Galyna
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.