I recently rewrite bash execution command into Jenkins pipeline. The old code is like
... source environment.sh //Build //Test ...
Now I use pi
source is a bash/ksh/etc extension, provided as a more "substantial" synonym for ..
source
bash
ksh
.
In sh, you need to use . in case the underlying shell is one (such as dash) that does not support the command source.
sh
dash
sh ''' ... . environment.sh //Build //Test ... '''