I want to run the bash command in the jenkins pipeline instead of the shell command inside the groovy script:
I already tried using "#! / Bin / bash":
stage('Setting the variables values') { steps { sh ''' #!/bin/bash echo "hello world" ''' } }
And also tried using 'bash' instead of 'sh'
stage('Setting the variables values') { steps { bash ''' #!/bin/bash echo "hello world" ''' } }
Obviously, my team is more complicated than the "echo salutation world."
linux bash shell jenkins groovy
Yago azedias
source share