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

Grails build step not finding grails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • grails-plugin
    • None
    • CentOS release 6.2 (Final)

      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

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

              Created:
              Updated: