I have a global variable in Jenkins that references variable $HOME it works well in Freestyle jobs I can validate with shell step
$HOME
echo $HOME ech