Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-14891

Grails build fails with empty build parameter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • grails-plugin
    • None
    • Jenkins: 1.776
      Grails Plugin: 1.6.3
      Grails: 2.0.4

      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.

      Logfile:

      [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
      Configuring classpath
      Running pre-compiled script
      Error Script not found: GQS0.9.0

            jeffg2one jeffg2one
            manueln Manuel Niederkofler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: