Related questions
don't fail jenkins build if execute shell fails
As part of my build process, I am running a git commit as an execute shell step. However, if there are no changes in the workspace, Jenkins is failing the build. This is because git is returning an error code …
Run bash command on jenkins pipeline
Inside a groovy script (for a jenkins pipeline): How can I run a bash command instead of a sh command?
I have tried the following:
Call "#!/bin/bash" inside the sh call:
stage('Setting the variables values') {
steps {
sh '''
#!/…