I recently rewrite bash execution command into Jenkins pipeline. The old code is like
... source environment.sh //Build //Test ...
Now I use pi
Replace source environment.sh with
source environment.sh
. ./environment.sh
Please note there is a space after first dot.