-
Bug
-
Resolution: Not A Defect
-
Trivial
-
None
-
Jenkins 1.571, Amazon AMI 2014.03, java version "1.7.0_55"
When attempting to create a job with jenkins-cli using a malformed XML file the exception is "java.io.IOException: Unable to read" which always places the uploaded file name at the jenkins_home location even when it originated elsewhere.
Example:
java -jar jenkins-cli.jar -s http://127.0.0.1:8080/ create-job Test33 < /tmp/Test34_config.xml
java.io.IOException: Unable to read /var/lib/jenkins/jobs/Test33/config.xml
Also, this is misleading as the file was read, it was just not properly formated and thus should have an error of "Malformed XML document /tmp/Test34_xonfig.xml" or something similar.
Exception output
https://gist.github.com/anonymous/a38eeab53a9bf35695dc