Groovy script for workflow Jenkins plugin