Added support for retrieving environment variables
POM: updated to latest jenkins plugin version