You can also use the WSL on recent Windows and call the wsl shell, which
can be call with:
“wsl ${cmd}”
I made myself a function that do call the proper shell based on the current
platform, so my pipeline script does look like a big if else mess for each
shell command, on windows it append t
Your Jenkins controller is running on Windows. Windows uses batch and
powershell for its command line scripting.
If you want to run a shell script, add an agent on an operating system that
supports bash. That could be a Linux Docker based agent running in Docker
on your Windows computer. It
Hello everyone,
How can I execute shell scripts from jenkins?
I have the below code in "Execute Shell" command
""
#!/bin/bash
echo "hello"
Received the following Error Msg in the console.
Running as SYSTEM Building on master in workspace
C:\Users\crnat\.jenkins\workspace\ssh-task-test [ssh-t
return sout.tokenize()
>
> eg:- in script.sh if I add line
>
> echo "hello world" > test
>
> then test file is not created but instead if I do
>
> echo "hello world"
>
> It gets printed on the Jenkins console
>
> for more understanding:
>
>
ts printed on the Jenkins console
for more understanding:
http://stackoverflow.com/questions/30253684/how-do-i-execute-shell-script-from-jenkins-groovy-script-in-the-parameters-optio?noredirect=1#comment48608118_30253684
Please help.
Regards
Shubham
--
You received this message because you ar