Jenkins Pipeline Generate Environment Variables From Script