We are using Jenkins to build our Grails project. The build is configured via parameters, one of them (Qualifier) possibly being empty. The parameter values are automatically passed to the war command with the -D option. This leads to an error, because of the empty parameter. A solution in my optinion would be to omit empty parameters from passing them to the grails command.
[MDA_Grails] $ cmd.exe /C C:\Tools\grails\grails-2.0.4\bin\grails.bat -DBranch=release-GQS -DClose=false -DQualifier= -DVersion=GQS-0.9.0 -DPush=true war --non-interactive && exit %%ERRORLEVEL%%
Loading Grails 2.0.4
Running pre-compiled script
Error Script not found: GQS0.9.0