Open MauriceNino opened 4 years ago
It is generally a bad idea to have spaces in paths for the repositories where you keep the source code. A quick and decently stable workaround for this is simply to not have whitespace in your paths.
I mean that not having a space in the path is a fast solution is nothing we have to talk about. Its just stupid, because I cant change the display name for a Jenkins Pipeline so now I am forced to have a _ in my name which just looks bad.
Also I dont think this would be that hard to fix for someone familiar with this source code.
Facing the same issue, having to revert to 1.6, which does not have this problem.
Same issue here, build failed on Jenkins. I'm using 2.5.0 version of the plugin. I had to rename "Run integration tests" to ugly "Run_integration_tests".
@lennartj - I can't see any reason, why having spaces in a source code repo path would have to be generally a bad idea.
Env
Issue
The problem comes from our Build-Server where the job-name should include a space char.
Error-Stack of the failed build:
Click for Stack
``` 00:02:57.644 [ERROR] null [-1,-1] 00:02:57.644 org.xml.sax.SAXParseException; schema_reference.4: Failed to read schema document 'file:/ciwork/jenkins/workspace/proj/project%20test/ciwork/jenkins/workspace/proj/project%20test/mvn-module/src/main/resources/xsd/name.xjb', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is notReason
I have seen something in the log that might be the fault for this:
It looks really weird that the
-b
parameter is twice in there and the paths are formatted differently (first without%20
and then the last 2 are with it)Here are the arguments for a successful build (replaced the whitespace with
_
):