Jenkins错误在通道Chunked连接中创建作业错误

时间:2018-06-26 08:39:23

标签: java powershell jenkins cmd

嗨,我正在尝试使用此命令通过cli创建工作

java -jar jenkins-cli.jar -s http://192.168.99.100:8050/ get-job "testjob" | scb

java -jar jenkins-cli.jar -s http://192.168.99.100:8050/ create-job "mynewjob" | gcb

但是我遇到此错误,任何人我该如何解决?我的想法是将作业从我的本地jenkins复制到远程jenkins。

这是我面临的错误:

[WARN] Failed to authenticate with your SSH keys. Proceeding as anonymous
    jun 26, 2018 10:26:21 AM hudson.remoting.SynchronousCommandTransport$ReaderThread run
    GRAVE: I/O error in channel Chunked connection to http://192.168.99.100:8050/cli
    java.io.IOException: Unexpected termination of the channel
            at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:73)
    Caused by: java.io.EOFException
            at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
            at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
            at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
            at java.io.ObjectInputStream.<init>(Unknown Source)
            at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:48)
            at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
            at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:59)

0 个答案:

没有答案