Change By: Steven Christou (10/Jul/14 9:54 PM)
Summary: Exception  Misleading exception from cli command create-job
Description:
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
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to