Quick learning-Jenkins CLI diagnosis

diagnosis

Because misconfiguration or lack of appropriate plug, may lead to jclinot work properly. However, sometimes it is not easy and time-consuming to find the problem quickly. The 诊断functions to be introduced here exist to solve such problems.

Plugin dependency

For example, the command jcli job searchto rely on plug- Pipeline-RESTful-API . Other plugins have similar dependencies. In some cases, there are also requirements for the version of the plug-in.

When executing the command, if you find that it cannot be used, you can try to use the diagnostic parameters to check whether the dependency is missing:

jcli job search --doctor

Which --doctoris a global parameter. When a dependency is not satisfied, etc., a corresponding error message will be output. For Error: lack of plugin pipeline-restful-apiexample: .

Guess you like

Origin blog.csdn.net/weixin_42528266/article/details/108626466