11

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 warin the targets input and -Dgrails.env=integration in the Properties input of the config section without any luck.

z00bs
  • 7,518
  • 4
  • 34
  • 53
  • You should just be able to put `grails.env=integration` in the properties pane of the `Build With Grails` build step. Is that what you tried? – tim_yates Mar 28 '11 at 11:18
  • Thanks, that works! I could have sweared I tried that out. I'll accept your answer if you post one. – z00bs Mar 28 '11 at 11:35

1 Answers1

13

You should just be able to put grails.env=integration in the properties pane of the Build With Grails build step. Is that what you tried?

tim_yates
  • 167,322
  • 27
  • 342
  • 338