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

Grails wrapper doesn't respect "Project Base Directory"

    Details

    • Type: Bug
    • Status: Reopened (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: grails-plugin
    • Labels:
      None
    • Environment:
      Debian 6 with jenkins v1.473 and grails plugin v1.6.2
    • Similar Issues:

      Description

      The grails plugin tries to start the "grailsw" grails wrapper from the workspace root instead of the "project base directory". The build will fail, as the grailsw (if present) is actually installed in the grails project base directory.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: kiy0taka
          Path:
          src/main/java/com/g2one/hudson/grails/GrailsBuilder.java
          http://jenkins-ci.org/commit/grails-plugin/a54cbb2a133e08b88711b53715a0f33bea5aed51
          Log:
          fixed bug. refs JENKINS-14345

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: kiy0taka Path: src/main/java/com/g2one/hudson/grails/GrailsBuilder.java http://jenkins-ci.org/commit/grails-plugin/a54cbb2a133e08b88711b53715a0f33bea5aed51 Log: fixed bug. refs JENKINS-14345
          Hide
          johnrengelman John Engelman added a comment - - edited

          This change broke the use of the $WORKSPACE variable inside grails.work.dir.

          set grails.work.dir = ${WORKSPACE}/.grails, results in this error:

          FATAL: No such property: WORKSPACE for class: Script1
          groovy.lang.MissingPropertyException: No such property: WORKSPACE for class: Script1
          at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
          at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)
          at Script1.run(Script1.groovy:1)
          at groovy.lang.GroovyShell.evaluate(GroovyShell.java:580)
          at groovy.lang.GroovyShell.evaluate(GroovyShell.java:618)
          at groovy.lang.GroovyShell.evaluate(GroovyShell.java:589)
          at com.g2one.hudson.grails.GrailsBuilder.evalTarget(GrailsBuilder.java:262)
          at com.g2one.hudson.grails.GrailsBuilder.perform(GrailsBuilder.java:191)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
          at hudson.model.Build$BuildExecution.build(Build.java:199)
          at hudson.model.Build$BuildExecution.doRun(Build.java:160)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
          at hudson.model.Run.execute(Run.java:1488)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:236)

          Show
          johnrengelman John Engelman added a comment - - edited This change broke the use of the $WORKSPACE variable inside grails.work.dir. set grails.work.dir = ${WORKSPACE}/.grails, results in this error: FATAL: No such property: WORKSPACE for class: Script1 groovy.lang.MissingPropertyException: No such property: WORKSPACE for class: Script1 at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50) at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231) at Script1.run(Script1.groovy:1) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:580) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:618) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:589) at com.g2one.hudson.grails.GrailsBuilder.evalTarget(GrailsBuilder.java:262) at com.g2one.hudson.grails.GrailsBuilder.perform(GrailsBuilder.java:191) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1488) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236)
          Hide
          hardwickj James Hardwick added a comment -

          From what I can tell it broke the use of all variables inside every one of the individual setting fields.

          A work around is to set all properties in the "Properties" box, which for whatever reason does seem to still be working.

          Show
          hardwickj James Hardwick added a comment - From what I can tell it broke the use of all variables inside every one of the individual setting fields. A work around is to set all properties in the "Properties" box, which for whatever reason does seem to still be working.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: kiy0taka
          Path:
          src/main/java/com/g2one/hudson/grails/GrailsBuilder.java
          src/test/java/com/g2one/hudson/grails/GrailsBuilderTest.java
          http://jenkins-ci.org/commit/grails-plugin/9027b7c9eeb9c6bb13e1e416a1bcfff3c0ac2026
          Log:
          replace Jenkins default variables. (JENKINS-14345)

          Compare: https://github.com/jenkinsci/grails-plugin/compare/aa38c3a59f8b...9027b7c9eeb9

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: kiy0taka Path: src/main/java/com/g2one/hudson/grails/GrailsBuilder.java src/test/java/com/g2one/hudson/grails/GrailsBuilderTest.java http://jenkins-ci.org/commit/grails-plugin/9027b7c9eeb9c6bb13e1e416a1bcfff3c0ac2026 Log: replace Jenkins default variables. ( JENKINS-14345 ) Compare: https://github.com/jenkinsci/grails-plugin/compare/aa38c3a59f8b...9027b7c9eeb9
          Hide
          tomc Tom Crossland added a comment -

          See also JENKINS-20583

          Show
          tomc Tom Crossland added a comment - See also JENKINS-20583

            People

            • Assignee:
              kiy0taka kiy0taka
              Reporter:
              hojerst Stefan Hojer
            • Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: