The plugin currently ignores an "intentionally blank" value of the grails.work.dir setting. This seems strange to me. In the configuration options, the help text says:
grails.work.dir: "Specify a value for the grails.work.dir system property (optional)"
My expectation is that if I leave this option blank, then Jenkins should not even specify the "-Dgrails.work.dir=something" parameter when invoking grails. Currently this is not the case. I leave the parameter blank and yet Jenkins sets it automatically to [workspace]/target.
If the user requires Jenkins to automatically set the value, this should be either be a different configuration option in the user interface, or the user should have to specify some kind of "(auto)" setting.