I have a bash file that is used to set env variables. It is called setter.sh
and contains something like this
set -x
var1="something"
in my jenkinsfile I do this
sh ". setter.sh"
sh "echo $var1"
However $var1
is not recognized. What could be the reasoning of this?