We were using Jenkins CLI "Remoting" mode to do several operations. But we have upgraded our Jenkins server to "config.xmlv2.176.1". Now we are unable to execute "Remoting" mode on it. As per [doc|https://jenkins.io/projects/remoting/], Remoting mode is deprecated. So we are try to use HTTP mode.
Now while trying to create job we are facing an HTTPInput failure error.
Success scenario: When we try it using command "java -jar jenkins-cli.jar -s http://localhost:8080/ -auth user:auth-token -noKeyAuth create-job jenkins-cli-test < config.xml", from command line, the job is getting successfully created.
Failure Scenario: When we try it using command "java -jar jenkins-cli.jar -s http://localhost:8080/ -auth user:auth-token -noKeyAuth create-job jenkins-cli-test", from command line, it will wait for user input. If I paste the XML file and press Ctrl+Z as a exit character, it will give me an error "java.io.IOException: Pipe broken" and "Caused: java.io.IOException: Failed to persist config.xml". Attching full stacktrace. (ErrorFileName: Failure-with-persist-xml-error.txt)
Also if I use failure scanario and after pasting XML, and wait for more 5 sec it will throw an error at Jenkins log "java.io.IOException: java.util.concurrent.TimeoutException: Idle timeout expired: 5000/5000 ms". Attaching full stacktrace. (ErrorFileName: Failure-with-timeout-error.txt)
Also attaching config.xml file.
Is there anything am I doing wrong or missing?