未验证 提交 3485779e 编写于 作者: O Oliver Gondža 提交者: GitHub

Merge pull request #3406 from Wadeck/FIX_CLI_LOGOUT_TEST_FAILURE

Fix the CLI test failure
......@@ -268,7 +268,7 @@ public abstract class CLICommand implements ExtensionPoint, Cloneable {
sc.setAuthentication(getTransportAuthentication());
new ClassParser().parse(authenticator,p);
if (!(this instanceof LoginCommand || this instanceof LogoutCommand || this instanceof HelpCommand))
if (!(this instanceof LoginCommand || this instanceof LogoutCommand || this instanceof HelpCommand || this instanceof WhoAmICommand))
Jenkins.getActiveInstance().checkPermission(Jenkins.READ);
p.parseArgument(args.toArray(new String[args.size()]));
Authentication auth = authenticator.authenticate();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册