SafeRestart-Jenkins CLI命令在Windows 10中引发异常

时间:2018-08-23 07:52:10

标签: jenkins jenkins-cli

我在尝试执行以下命令时遇到异常:

java -jar jenkins-cli.jar -s http://localhost:8080/安全重启

ERROR: Unexpected exception occurred while performing safe-restart command.
hudson.lifecycle.RestartNotSupportedException: Default Windows lifecycle 
does not support restart.
    at hudson.lifecycle.Lifecycle$1.verifyRestartable(Lifecycle.java:84)
    at jenkins.model.Jenkins.safeRestart(Jenkins.java:4216)
    at jenkins.model.Jenkins.doSafeRestart(Jenkins.java:4176)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

0 个答案:

没有答案