I have a script that uses sh shell. I get an error in the line that uses the source command. It seems source is not included in my
sh
source
This problem happens because jenkins Execute Shell runs the script via its /bin/sh
Consequently, /bin/sh does not know "source"
You just need to add the below line at the top of your Execute Shell in jenkins
#!/bin/bash