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

grails can not build non-production war

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Not A Defect
    • Component/s: grails-plugin
    • Labels:
      None
    • Environment:
      windows 7, grails 2.1.1, java 7
    • Similar Issues:

      Description

      i am using the parameters textbox to set "grails.env=development" without the quotes, but i tied several other values against that key, and the grails plugin will build the command line correctly: "grails -Dgrails.env=development war", and submit it to cmd.exe. "cmd.exe /c grails -Dgrails.env=development war" for some reason, the cmd.exe hoses the grails CLI, it doesnot see the -D expression so grails basically throws that away and then builds production instead. frankly this entire interface for using grails is not documented and makes little sense. if you have a text box for the parameters, why not just let us put the entire command line that we want in that textbox. and not bother with the idea of piecing the command line together behind the scenes. KISS. also, i dont see any reason why to submit this to cmd and not just exec grails per se. i submitted this as a blocker.

        Attachments

          Activity

          Hide
          txusul bob makowski added a comment -

          please close this. it was a cockpit error. however. I still think this interface could be simplified to simply let us place the entire grails command line into the job.

          Show
          txusul bob makowski added a comment - please close this. it was a cockpit error. however. I still think this interface could be simplified to simply let us place the entire grails command line into the job.
          Hide
          ramzimaalej Ramzi Maalej added a comment -

          Environnment can be set using the properties field: grails.env=test

          Show
          ramzimaalej Ramzi Maalej added a comment - Environnment can be set using the properties field: grails.env=test

            People

            • Assignee:
              jeffg2one jeffg2one
              Reporter:
              txusul bob makowski
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: