I have windows 10 and I want to execute the sh command in the Jenkinsfile from Jenkins pipeline using bash for Ubuntu for windows, but it doesn't work
I have the following stage in my Jenkins pipeline :
stage('sh how to') {
steps {
sh 'ls -l'
}
}
The error message is :
[C:Program Files (x86)Jenkinsworkspacepipelineascode] Running shell script
Cannot run program "nohup" (in directory "C:Program Files (x86)Jenkinsworkspacepipelineascode"): CreateProcess error=2, Le fichier spécifié est introuvable
I tried changing Jenkins parameter->shell executable with
C:WindowsSystem32ash.exe
but same error...
how to run sh script using windows 10's bash?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…