Extract Jenkins variables and use them in template /etc/default/jenkins and for nginx.