[JIRA] (JENKINS-36163) Spaces in Job Name Cause Maven Test Failures for File Input
Title: Message Title Matthew Sexton updated an issue Jenkins / JENKINS-36163 Spaces in Job Name Cause Maven Test Failures for File Input Change By: Matthew Sexton Issue set as minor due to available workaround.*Problem:*Where maven job names have spaces and files are used within the workspace, Jenkins cannot locate the file in the workspace because the url-encoded values do not match the literal value of the path on the host.Job name: "KEY (3) - Package email app (DEV)"{code}java.nio.file.NoSuchFileException: /var/lib/jenkins/jobs/foldername/jobs/KEY%20(3)%20-%20Package% 20email 20app %20(DEV)/workspace/email/target/test-classes/data/ TextEmail TestText .txtat sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)at java.nio.file.Files.newByteChannel(Files.java:317)at java.nio.file.Files.newByteChannel(Files.java:363)at java.nio.file.Files.readAllBytes(Files.java:2981)at com.company.a.e.ParserTest.setUp(ParserTest.java:50){code}Where the file is validated and the literal path is /var/lib/jenkins/jobs/foldername/jobs/KEY (3) - Package email app (DEV)/workspace/email/target/test-classes/data/ TextEmail TextTest .txt*Workaround:*Change the job name to " KEY3PackageEmailDEV KEY3PackageAppDEV " removing all spaces allows the tests to locate the appropriate filepaths correctly - and the tests can be run without errors. Add Comment
[JIRA] (JENKINS-36163) Spaces in Job Name Cause Maven Test Failures for File Input
Title: Message Title Matthew Sexton created an issue Jenkins / JENKINS-36163 Spaces in Job Name Cause Maven Test Failures for File Input Issue Type: Bug Assignee: Unassigned Components: maven-plugin Created: 2016/Jun/22 11:35 PM Environment: Jenkins 2.10, CentOS 7 x64, OpenJDK 1.8 Priority: Minor Reporter: Matthew Sexton Issue set as minor due to available workaround. Problem: Where maven job names have spaces and files are used within the workspace, Jenkins cannot locate the file in the workspace because the url-encoded values do not match the literal value of the path on the host. Job name: "KEY (3) - Package email (DEV)" java.nio.file.NoSuchFileException: /var/lib/jenkins/jobs/foldername/jobs/KEY%20(3)%20-%20Package%20email%20(DEV)/workspace/email/target/test-classes/data/TextEmail.txt at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214) at java.nio.file.Files.newByteChannel(Files.java:317) at java.nio.file.Files.newByteChannel(Files.java:363) at java.nio.file.Files.readAllBytes(Files.java:2981) at com.company.a.e.ParserTest.setUp(ParserTest.java:50) Where the file is validated and the literal path is /var/lib/jenkins/jobs/foldername/jobs/KEY (3) - Package email