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

Ansible ad-hoc inventory not working when executed in a shell command in a Jenkins pipeline?

2021-08-12 Thread zil...@gmail.com
Since my ansible-playbook command works in several places, I don't think this is an Ansible issue, so I posted here,. Please see my Stackoverflow question. https://stackoverflow.com/questions/68751100/ansible-ad-hoc-inventory-not-working-when-executed-in-a-shell-command-in-a-jenki Thanks, Chris