I'm using the Grails plugin for Jenkins (formerly Hudson) and didn't find a way to specify a custom environment for a target.
I tried -Dgrails.env=myEnvironment war
in the targets
input and -Dgrails.env=integration
in the Properties
input of the config section without any luck.