Groovy scripts in workspace path containing "e-n" raises "java.io.IOException: Invalid argument"

XMLWordPrintable

    • Type: Bug
    • Resolution: Not A Defect
    • Priority: Major
    • Component/s: groovy-plugin
    • Environment:
      Windows 8.1 / Windows Server 2012
      JDK 7 / 8
      Groovy 2.2.1 / 2.3.0
      Jenkins 1.562
      Jenkins Groovy Plugin 1.16

      Reproducing steps:

      1. Prepare a fresh install of Jenkins
      2. Install Groovy Plugin
      3. Add an Groovy Installation (Install 2.2.1 automatically from codehaus)
      4. Create a free-style project named "e-n"
      5. Add "Execute Groovy script" build step, and choose installed groovy version
      6. Check "Groovy command", input "println 'hello!'"
      7. Click "Build Now", bang!

      Console Output:

      Started by user anonymous
      Building in workspace R:\jenkins\workspace\e-n
      [e-n] $ R:\jenkins\tools\hudson.plugins.groovy.GroovyInstallation\groovy-2.2.1\bin\groovy.bat R:\jenkins\workspace\e-n\hudson5258506742629958701.groovy
      Caught: java.io.IOException: Invalid argument
      java.io.IOException: Invalid argument
      Build step 'Execute Groovy script' marked build as failure
      Finished: FAILURE
      

            Assignee:
            vjuranek
            Reporter:
            Pei-Tang Huang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: