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

Maven3 with 'builds' directory in a separate location tries to create folders with colons in the module name which is not allowed on windows.

    Details

    • Similar Issues:

      Description

      We are using Jenkins on windows and set our workspaces and builds to be a separate directory to the standard jenkins install directory on windows.

      This all works fine for our ant builds with our build artefacts stored in U:\jenkins\builds

      However we have recently added some maven3 builds.
      These work fine if you have the Build Record Root Directory set to the default as: ${ITEM_ROOTDIR}/builds
      And the build folders exists as: C:\Program Files (x86)\Jenkins\jobs\<job name>\modules\<groupId>$<artifactId>

      However changing the Build Record Root Directory to u:/jenkins/builds/${ITEM_FULLNAME} it then tries to create the directory with a colon rather than a dollar in the directory name, this fails on windows.
      e.g.
      u:\jenkins\builds\<job name>\<groupId>:<artifactId>

      I can confirm running jenkins on linux the same occurs, however the colon is not a problem (as its an allowed character).

      Started by user Sam Webber
      Building on master
      Updating http://svnserver/svn/ss/platform/branches/wc/wc_maven_migration/core/ss-core
      At revision 181408
      no revision recorded for http://svnserver/svn/ss/platform/branches/wc/wc_maven_migration/core/ss-core in the previous build
      Parsing POMs
      Modules changed, recalculating dependency graph
      ERROR: Failed to parse POMs
      java.io.FileNotFoundException: u:\jenkins\builds\wc.ss-core\com.ss:ss-core\2011-12-23_19-09-32\log (The filename, directory name, or volume label syntax is incorrect)
      at java.io.FileOutputStream.open(Native Method)
      at java.io.FileOutputStream.<init>(Unknown Source)
      at java.io.FileOutputStream.<init>(Unknown Source)
      at hudson.maven.MavenBuild$ProxyImpl2.<init>(MavenBuild.java:474)
      at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:686)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:462)
      at hudson.model.Run.run(Run.java:1404)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:238)
      FATAL: Failed to create a temporary file in u:\jenkins\builds\wc.ss-core\com.ss:ss-core\2011-12-23_19-09-32
      hudson.util.IOException2: Failed to create a temporary file in u:\jenkins\builds\wc.ss-core\com.ss:ss-core\2011-12-23_19-09-32
      at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:67)
      at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:54)
      at hudson.XmlFile.write(XmlFile.java:170)
      at hudson.model.Run.save(Run.java:1540)
      at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:1011)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:614)
      at hudson.model.Run.run(Run.java:1429)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:238)
      Caused by: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
      at java.io.WinNTFileSystem.createFileExclusively(Native Method)
      at java.io.File.checkAndCreate(Unknown Source)
      at java.io.File.createTempFile(Unknown Source)
      at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:65)
      ... 9 more

        Attachments

          Issue Links

            Activity

            samwebber Samuel Webber created issue -
            samwebber Samuel Webber made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-8446 [ JENKINS-8446 ]
            samwebber Samuel Webber made changes -
            Labels build exception jenkins maven windows
            samwebber Samuel Webber made changes -
            Description We are using Jenkins on windows and set our workspaces and builds to be a separate directory to the standard jenkins install directory on windows.

            This all works fine for our ant builds with our build artefacts stored in U:\jenkins\builds

            However we have recently added some maven3 builds.
            These work fine if you have the Build Record Root Directory set to the default as: ${ITEM_ROOTDIR}/builds
            And the build folders exists as: C:\Program Files (x86)\Jenkins\jobs\<job name>\modules\<groupId>$<artifactId>

            However changing the Build Record Root Directory to U:\jenkins\builds it then tries to create the directory with a colon rather than a dollar in the directory name, this fails on windows.

            I can confirm running jenkins on linux the same occurs, however the colon is not a problem (as its an allowed character).


            Started by user Sam Webber
            Building on master
            Updating http://svnserver/svn/ss/platform/branches/wc/wc_maven_migration/core/ss-core
            At revision 181408
            no revision recorded for http://svnserver/svn/ss/platform/branches/wc/wc_maven_migration/core/ss-core in the previous build
            Parsing POMs
            Modules changed, recalculating dependency graph
            ERROR: Failed to parse POMs
            java.io.FileNotFoundException: u:\jenkins\builds\wc.ss-core\com.ss:ss-core\2011-12-23_19-09-32\log (The filename, directory name, or volume label syntax is incorrect)
            at java.io.FileOutputStream.open(Native Method)
            at java.io.FileOutputStream.<init>(Unknown Source)
            at java.io.FileOutputStream.<init>(Unknown Source)
            at hudson.maven.MavenBuild$ProxyImpl2.<init>(MavenBuild.java:474)
            at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:686)
            at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:462)
            at hudson.model.Run.run(Run.java:1404)
            at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481)
            at hudson.model.ResourceController.execute(ResourceController.java:88)
            at hudson.model.Executor.run(Executor.java:238)
            FATAL: Failed to create a temporary file in u:\jenkins\builds\wc.ss-core\com.ss:ss-core\2011-12-23_19-09-32
            hudson.util.IOException2: Failed to create a temporary file in u:\jenkins\builds\wc.ss-core\com.ss:ss-core\2011-12-23_19-09-32
            at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:67)
            at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:54)
            at hudson.XmlFile.write(XmlFile.java:170)
            at hudson.model.Run.save(Run.java:1540)
            at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:1011)
            at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:614)
            at hudson.model.Run.run(Run.java:1429)
            at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481)
            at hudson.model.ResourceController.execute(ResourceController.java:88)
            at hudson.model.Executor.run(Executor.java:238)
            Caused by: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
            at java.io.WinNTFileSystem.createFileExclusively(Native Method)
            at java.io.File.checkAndCreate(Unknown Source)
            at java.io.File.createTempFile(Unknown Source)
            at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:65)
            ... 9 more





            We are using Jenkins on windows and set our workspaces and builds to be a separate directory to the standard jenkins install directory on windows.

            This all works fine for our ant builds with our build artefacts stored in U:\jenkins\builds

            However we have recently added some maven3 builds.
            These work fine if you have the Build Record Root Directory set to the default as: ${ITEM_ROOTDIR}/builds
            And the build folders exists as: C:\Program Files (x86)\Jenkins\jobs\<job name>\modules\<groupId>$<artifactId>

            However changing the Build Record Root Directory to u:/jenkins/builds/${ITEM_FULLNAME} it then tries to create the directory with a colon rather than a dollar in the directory name, this fails on windows.
            e.g.
            u:\jenkins\builds\<job name>\<groupId>:<artifactId>

            I can confirm running jenkins on linux the same occurs, however the colon is not a problem (as its an allowed character).


            Started by user Sam Webber
            Building on master
            Updating http://svnserver/svn/ss/platform/branches/wc/wc_maven_migration/core/ss-core
            At revision 181408
            no revision recorded for http://svnserver/svn/ss/platform/branches/wc/wc_maven_migration/core/ss-core in the previous build
            Parsing POMs
            Modules changed, recalculating dependency graph
            ERROR: Failed to parse POMs
            java.io.FileNotFoundException: u:\jenkins\builds\wc.ss-core\com.ss:ss-core\2011-12-23_19-09-32\log (The filename, directory name, or volume label syntax is incorrect)
            at java.io.FileOutputStream.open(Native Method)
            at java.io.FileOutputStream.<init>(Unknown Source)
            at java.io.FileOutputStream.<init>(Unknown Source)
            at hudson.maven.MavenBuild$ProxyImpl2.<init>(MavenBuild.java:474)
            at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:686)
            at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:462)
            at hudson.model.Run.run(Run.java:1404)
            at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481)
            at hudson.model.ResourceController.execute(ResourceController.java:88)
            at hudson.model.Executor.run(Executor.java:238)
            FATAL: Failed to create a temporary file in u:\jenkins\builds\wc.ss-core\com.ss:ss-core\2011-12-23_19-09-32
            hudson.util.IOException2: Failed to create a temporary file in u:\jenkins\builds\wc.ss-core\com.ss:ss-core\2011-12-23_19-09-32
            at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:67)
            at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:54)
            at hudson.XmlFile.write(XmlFile.java:170)
            at hudson.model.Run.save(Run.java:1540)
            at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:1011)
            at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:614)
            at hudson.model.Run.run(Run.java:1429)
            at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481)
            at hudson.model.ResourceController.execute(ResourceController.java:88)
            at hudson.model.Executor.run(Executor.java:238)
            Caused by: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
            at java.io.WinNTFileSystem.createFileExclusively(Native Method)
            at java.io.File.checkAndCreate(Unknown Source)
            at java.io.File.createTempFile(Unknown Source)
            at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:65)
            ... 9 more





            samwebber Samuel Webber made changes -
            Summary Maven3 with 'builds' directory in a separate location tries to create folders with colons in the module names which is not allowed on windows. Maven3 with 'builds' directory in a separate location tries to create folders with colons in the module name which is not allowed on windows.
            kutzi kutzi made changes -
            Component/s maven2 [ 15487 ]
            scm_issue_link SCM/JIRA link daemon made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            ircbot Jenkins IRC Bot made changes -
            Component/s maven-plugin [ 16033 ]
            Component/s maven2 [ 15487 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 142573 ] JNJira + In-Review [ 190176 ]
            tadek Tadeusz Kosciuszko made changes -
            Link This issue is related to JENKINS-48188 [ JENKINS-48188 ]

              People

              • Assignee:
                Unassigned
                Reporter:
                samwebber Samuel Webber
              • Votes:
                10 Vote for this issue
                Watchers:
                15 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: