I have windows 10 and I want to execute the sh command in the Jenkins file from the Jenkins pipeline using bash for Ubuntu for windows, but it does not work
I have the following step in my Jenkins project:
stage('sh how to') {
steps {
sh 'ls -l'
}
}
Error message:
[C: \ Program Files (x86) \ Jenkins \ workspace \ pipeascode] Running the shell scriptYou cannot run the "nohup" program (in the directory "C: \ Program Files (x86) \ Jenkins \ workspace \ pipeascode"): CreateProcess error = 2, Le fichier spécifié est introuvable
I tried to change the Jenkins-> shell parameter executable with
C: \ Windows \ System32 \ bash.exe
but the same error ...
how to run sh script using windows 10 bash?