Jenkins:无法从CLI创建模板

时间:2018-08-28 04:43:25

标签: php jenkins jenkins-cli

按照this教程中所述执行以下命令:

 curl -L https://raw.githubusercontent.com/modess/php-jenkins-template/master/config.xml | \
 java -jar jenkins-cli.jar -s http://localhost:8080 create-job php-template --username $JCLIUSER --password $JCLIPASS

但是会返回此错误:

java.io.IOException: Server returned HTTP response code: 503 for URL: http://localhost:8080/cli?remoting=false
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1894)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
    at hudson.cli.FullDuplexHttpStream.<init>(FullDuplexHttpStream.java:101)
    at hudson.cli.CLI.plainHttpConnection(CLI.java:652)
    at hudson.cli.CLI._main(CLI.java:612)
    at hudson.cli.CLI.main(CLI.java:426)

我错过了任何步骤吗?

0 个答案:

没有答案