We have two factor authentication in Jenkins server and I'm trying to execute *create-node *command using personal access token.
*java -jar jenkins-cli.jar -s "https://URL" -auth username:token create-node "test"* this command is giving below error however if i remove the 2FA from jenkins and pass the username:password in -auth everything is working fine. *Observation* : except *create-node* all other commands are working fine using personal access token. Unexpected exception occurred while performing create-node command. java.io.InterruptedIOException at java.base/java.io.PipedInputStream.read(PipedInputStream.java:328) at java.base/java.io.PipedInputStream.read(PipedInputStream.java:377) at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:244) at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:263) at java.base/java.io.FilterInputStream.read(FilterInputStream.java:82) at java.base/java.io.PushbackInputStream.read(PushbackInputStream.java:135) at com.thoughtworks.xstream.core.util.XmlHeaderAwareReader.getHeader(XmlHeaderAwareReader.java:79) at com.thoughtworks.xstream.core.util.XmlHeaderAwareReader.<init>(XmlHeaderAwareReader.java:61) at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:65) -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/61cf4b31-596c-4d47-b153-a9e6e548e833n%40googlegroups.com.
