build variable should be available as of groovy plugin 1.13