Re: Execute shell script from jenkins

2021-08-12 Thread Jerome Godbout
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

Re: Execute shell script from jenkins

2021-08-12 Thread Mark Waite
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

Execute shell script from jenkins

2021-08-12 Thread Poonkuzhali Muthiah
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

Re: How do I execute shell script from Jenkins groovy script in the parameters option?

2015-05-15 Thread Baptiste Mathus
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: > >

How do I execute shell script from Jenkins groovy script in the parameters option?

2015-05-15 Thread Shubham Sharma
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