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

Grails build step not finding grails

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: grails-plugin
    • Labels:
      None
    • Environment:
      CentOS release 6.2 (Final)
    • Similar Issues:

      Description

      I installed the grails plugin.

      Went to Manage Jenkins and setup a grails instance called grails_2.0.1

      I selected Install automatically

      I selected Grails 2.0.1

      Saved then created a new job that calls grails test-app target

      Got the following job output:

      [webapp] $ grails test-app -clean --non-interactive
      FATAL: command execution failed
      java.io.IOException: Cannot run program "grails" (in directory "/var/lib/jenkins/jobs/liftyourgame-grails-master/workspace/webapp"): java.io.IOException: error=2, No such file or directory
      at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
      at hudson.Proc$LocalProc.<init>(Proc.java:244)
      at hudson.Proc$LocalProc.<init>(Proc.java:216)
      at hudson.Launcher$LocalLauncher.launch(Launcher.java:707)
      at hudson.Launcher$ProcStarter.start(Launcher.java:338)
      at hudson.Launcher$ProcStarter.join(Launcher.java:345)
      at com.g2one.hudson.grails.GrailsBuilder.perform(GrailsBuilder.java:217)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:700)
      at hudson.model.Build$RunnerImpl.build(Build.java:178)
      at hudson.model.Build$RunnerImpl.doRun(Build.java:139)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:470)
      at hudson.model.Run.run(Run.java:1404)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:238)
      Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
      at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
      at java.lang.ProcessImpl.start(ProcessImpl.java:81)
      at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
      ... 15 more
      Build step 'Build With Grails' marked build as failure
      Recording test results
      An attempt to send an e-mail to empty list of recipients, ignored.
      Finished: FAILURE

        Attachments

          Activity

          Hide
          ramzimaalej Ramzi Maalej added a comment -

          have you made Grails accessible via GRAILS_HOME and added $GRAILS_HOME/bin to path variable ?

          Show
          ramzimaalej Ramzi Maalej added a comment - have you made Grails accessible via GRAILS_HOME and added $GRAILS_HOME/bin to path variable ?
          Hide
          gpinkham Gary Pinkham added a comment - - edited

          an old issue but I see it's unresolved and it's biting me today.. I clicked install automatically as well but it doesn't do anything other than try to run grails.. also not sure how one sets home and path if Jenkins is doing the install.. but regardless I also tried to manually install grails and set the home and path in the server's bash profile.. of course tomcat doesn't run a shell so again not sure that helps..

          <edit>

          I also tried setting the tools locations in the configuration (and the grails home env variable).. none of this helped..

          Show
          gpinkham Gary Pinkham added a comment - - edited an old issue but I see it's unresolved and it's biting me today.. I clicked install automatically as well but it doesn't do anything other than try to run grails.. also not sure how one sets home and path if Jenkins is doing the install.. but regardless I also tried to manually install grails and set the home and path in the server's bash profile.. of course tomcat doesn't run a shell so again not sure that helps.. <edit> I also tried setting the tools locations in the configuration (and the grails home env variable).. none of this helped..

            People

            • Assignee:
              jeffg2one jeffg2one
              Reporter:
              netroworx Greg Pagendam-Turner
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: