java.nio.file.InvalidPathException: Illegal char <:> at index 95: C:\Program Files (x86)\Jenkins\jobs\Audit - All Templates - All Acceptance\builds\471\archive\C:\Jenkins\workspace\Audit - All Templates - All Acceptance\triggeredjobvars.properties

Jenkins JIRA | Cam Spencer | 1 year ago
  1. 0

    When we try to build another job using a properties file to set the parameters, the directory "C:\Program Files (x86)\Jenkins\jobs\jobName\builds\buildNum\archive\" is added to the front of the specified properties file. This same code was working with Jenkins 1.627, it stopped working after we upgraded to 1.636. Is this potentially related to https://issues.jenkins-ci.org/browse/JENKINS-23084 ? or JENKINS-31434 Injecting Environment Variables {code:java} PROPSFULLFILENAME=${WORKSPACE}\triggeredjobvars.properties {code} Execute Windows Batch Command {code:java} @echo. @echo Creating jobvars.properties file %propsFullFileName%... {code} Console output of the windows batch command {code:java} Creating jobvars.properties file C:\Jenkins\workspace\Audit - All Templates - All Acceptance\triggeredjobvars.properties... {code} After some variables are set in the file, a new job is triggered with the parameters set in the properties file that was created. This is the resulting output: {code:java} ERROR: Build step failed with exception java.nio.file.InvalidPathException: Illegal char <:> at index 95: C:\Program Files (x86)\Jenkins\jobs\Audit - All Templates - All Acceptance\builds\471\archive\C:\Jenkins\workspace\Audit - All Templates - All Acceptance\triggeredjobvars.properties at sun.nio.fs.WindowsPathParser.normalize(Unknown Source) at sun.nio.fs.WindowsPathParser.parse(Unknown Source) at sun.nio.fs.WindowsPathParser.parse(Unknown Source) at sun.nio.fs.WindowsPath.parse(Unknown Source) at sun.nio.fs.WindowsFileSystem.getPath(Unknown Source) at java.io.File.toPath(Unknown Source) at jenkins.util.VirtualFile$FileVF.isIllegalSymlink(VirtualFile.java:301) at jenkins.util.VirtualFile$FileVF.isFile(VirtualFile.java:241) at hudson.plugins.parameterizedtrigger.FileBuildParameters.extractAllValues(FileBuildParameters.java:120) at hudson.plugins.parameterizedtrigger.FileBuildParameters.getAction(FileBuildParameters.java:108) at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.getBaseActions(BuildTriggerConfig.java:292) at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.perform3(BuildTriggerConfig.java:378) at hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig.perform3(BlockableBuildTriggerConfig.java:66) at hudson.plugins.parameterizedtrigger.TriggerBuilder.perform(TriggerBuilder.java:88) at org.jenkinsci.plugins.conditionalbuildstep.BuilderChain.perform(BuilderChain.java:71) at org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:110) at org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail.conditionalRun(BuildStepRunner.java:154) at org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105) at org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder.perform(ConditionalBuilder.java:133) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) {code} "C:\Program Files (x86)\Jenkins\jobs\Audit - All Templates - All Acceptance\builds\471\archive\" is coming seemingly out of nowhere

    Jenkins JIRA | 1 year ago | Cam Spencer
    java.nio.file.InvalidPathException: Illegal char <:> at index 95: C:\Program Files (x86)\Jenkins\jobs\Audit - All Templates - All Acceptance\builds\471\archive\C:\Jenkins\workspace\Audit - All Templates - All Acceptance\triggeredjobvars.properties
  2. 0

    When we try to build another job using a properties file to set the parameters, the directory "C:\Program Files (x86)\Jenkins\jobs\jobName\builds\buildNum\archive\" is added to the front of the specified properties file. This same code was working with Jenkins 1.627, it stopped working after we upgraded to 1.636. Is this potentially related to https://issues.jenkins-ci.org/browse/JENKINS-23084 ? or JENKINS-31434 Injecting Environment Variables {code:java} PROPSFULLFILENAME=${WORKSPACE}\triggeredjobvars.properties {code} Execute Windows Batch Command {code:java} @echo. @echo Creating jobvars.properties file %propsFullFileName%... {code} Console output of the windows batch command {code:java} Creating jobvars.properties file C:\Jenkins\workspace\Audit - All Templates - All Acceptance\triggeredjobvars.properties... {code} After some variables are set in the file, a new job is triggered with the parameters set in the properties file that was created. This is the resulting output: {code:java} ERROR: Build step failed with exception java.nio.file.InvalidPathException: Illegal char <:> at index 95: C:\Program Files (x86)\Jenkins\jobs\Audit - All Templates - All Acceptance\builds\471\archive\C:\Jenkins\workspace\Audit - All Templates - All Acceptance\triggeredjobvars.properties at sun.nio.fs.WindowsPathParser.normalize(Unknown Source) at sun.nio.fs.WindowsPathParser.parse(Unknown Source) at sun.nio.fs.WindowsPathParser.parse(Unknown Source) at sun.nio.fs.WindowsPath.parse(Unknown Source) at sun.nio.fs.WindowsFileSystem.getPath(Unknown Source) at java.io.File.toPath(Unknown Source) at jenkins.util.VirtualFile$FileVF.isIllegalSymlink(VirtualFile.java:301) at jenkins.util.VirtualFile$FileVF.isFile(VirtualFile.java:241) at hudson.plugins.parameterizedtrigger.FileBuildParameters.extractAllValues(FileBuildParameters.java:120) at hudson.plugins.parameterizedtrigger.FileBuildParameters.getAction(FileBuildParameters.java:108) at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.getBaseActions(BuildTriggerConfig.java:292) at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.perform3(BuildTriggerConfig.java:378) at hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig.perform3(BlockableBuildTriggerConfig.java:66) at hudson.plugins.parameterizedtrigger.TriggerBuilder.perform(TriggerBuilder.java:88) at org.jenkinsci.plugins.conditionalbuildstep.BuilderChain.perform(BuilderChain.java:71) at org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:110) at org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail.conditionalRun(BuildStepRunner.java:154) at org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105) at org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder.perform(ConditionalBuilder.java:133) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) {code} "C:\Program Files (x86)\Jenkins\jobs\Audit - All Templates - All Acceptance\builds\471\archive\" is coming seemingly out of nowhere

    Jenkins JIRA | 1 year ago | Cam Spencer
    java.nio.file.InvalidPathException: Illegal char <:> at index 95: C:\Program Files (x86)\Jenkins\jobs\Audit - All Templates - All Acceptance\builds\471\archive\C:\Jenkins\workspace\Audit - All Templates - All Acceptance\triggeredjobvars.properties
  3. 0

    [JIRA] [envinject-plugin] (JENKINS-31682) Job archive directory is added to the front of the properties file path

    Google Groups | 1 year ago | cameron.spencer@caseware.com (JIRA)
    java.nio.file.InvalidPathException: Illegal <span class="code-object" style="color: #910091">char</span> &lt;:&gt; at index 95: C:\Program Files (x86)\Jenkins\jobs\Audit - All Templates - All Acceptance\builds\471\archive\C:\Jenkins\workspace\Audit - All Templates - All Acceptance\triggeredjobvars.properties
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Trailing space crash on Windows

    GitHub | 1 year ago | marcederis
    java.nio.file.InvalidPathException: Trailing char < > at index 18: c:\sync\38889-PT
  6. 0

    [JIRA] [core] (JENKINS-31015) Failure when downloading zipped artifacts

    Google Groups | 1 year ago | jgawlas@atsisa.com (JIRA)
    java.nio.file.InvalidPathException: Illegal <span class="code-object" style="color: #910091">char</span> &lt;*&gt; at index 73: C:\Program Files (x86)\Jenkins\jobs\Project-Default\builds\1677\archive\*zip*
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.nio.file.InvalidPathException

    Illegal char <:> at index 95: C:\Program Files (x86)\Jenkins\jobs\Audit - All Templates - All Acceptance\builds\471\archive\C:\Jenkins\workspace\Audit - All Templates - All Acceptance\triggeredjobvars.properties

    at sun.nio.fs.WindowsPathParser.normalize()
  2. Java RT
    File.toPath
    1. sun.nio.fs.WindowsPathParser.normalize(Unknown Source)
    2. sun.nio.fs.WindowsPathParser.parse(Unknown Source)
    3. sun.nio.fs.WindowsPathParser.parse(Unknown Source)
    4. sun.nio.fs.WindowsPath.parse(Unknown Source)
    5. sun.nio.fs.WindowsFileSystem.getPath(Unknown Source)
    6. java.io.File.toPath(Unknown Source)
    6 frames
  3. jenkins.util
    VirtualFile$FileVF.isFile
    1. jenkins.util.VirtualFile$FileVF.isIllegalSymlink(VirtualFile.java:301)
    2. jenkins.util.VirtualFile$FileVF.isFile(VirtualFile.java:241)
    2 frames
  4. Hudson Parameterized Trigger plugin
    TriggerBuilder.perform
    1. hudson.plugins.parameterizedtrigger.FileBuildParameters.extractAllValues(FileBuildParameters.java:120)
    2. hudson.plugins.parameterizedtrigger.FileBuildParameters.getAction(FileBuildParameters.java:108)
    3. hudson.plugins.parameterizedtrigger.BuildTriggerConfig.getBaseActions(BuildTriggerConfig.java:292)
    4. hudson.plugins.parameterizedtrigger.BuildTriggerConfig.perform3(BuildTriggerConfig.java:378)
    5. hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig.perform3(BlockableBuildTriggerConfig.java:66)
    6. hudson.plugins.parameterizedtrigger.TriggerBuilder.perform(TriggerBuilder.java:88)
    6 frames
  5. org.jenkinsci.plugins
    BuilderChain.perform
    1. org.jenkinsci.plugins.conditionalbuildstep.BuilderChain.perform(BuilderChain.java:71)
    1 frame
  6. org.jenkins_ci.plugins
    BuildStepRunner.perform
    1. org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:110)
    2. org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail.conditionalRun(BuildStepRunner.java:154)
    3. org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105)
    3 frames
  7. org.jenkinsci.plugins
    ConditionalBuilder.perform
    1. org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder.perform(ConditionalBuilder.java:133)
    1 frame
  8. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785)
    3. hudson.model.Build$BuildExecution.build(Build.java:205)
    4. hudson.model.Build$BuildExecution.doRun(Build.java:162)
    5. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
    6. hudson.model.Run.execute(Run.java:1741)
    7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    8. hudson.model.ResourceController.execute(ResourceController.java:98)
    9. hudson.model.Executor.run(Executor.java:410)
    9 frames