触发命令:
curl -u admin:123456 ‘http://192.168.x.x:8080/job/variable-test/buildWithParameters?token=123456&A=100’
报错如下:(ps: 如果用匿名用户触发远程构建就没有问题)
<!DOCTYPE html><html><head resURL=“/static/00ed394c” data-rooturl="“ data-resurl=”/static/00ed394c">
<title>Jenkins [Jenkins]</title><link rel=“stylesheet” href=“/static/00ed394c/css/layout-common.css” type=“text/css” /><link rel=“stylesheet” href=“/static/00ed394c/css/style.css” type=“text/css” /><link re
l=“stylesheet” href=“/static/00ed394c/css/color.css” type=“text/css” /><link rel=“stylesheet” href=“/static/00ed394c/css/responsive-grid.css” type=“text/css” /><link rel=“shortcut icon” href="/static/00ed394c/f
avicon.ico" type=“image/vnd.microsoft.icon” /><link color=“black” rel=“mask-icon” href=“/images/mask-icon.svg” /><script>var isRunAsTest=false; var rootURL="“; var resURL=”/static/00ed394c";</script><script src
=“/static/00ed394c/scripts/prototype.js” type=“text/javascript”></script><script src=“/static/00ed394c/scripts/behavior.js” type=“text/javascript”></script><script src='/adjuncts/00ed394c/org/kohsuke/stapler/bi
nd.js’ type=‘text/javascript’></script><script src=“/static/00ed394c/scripts/yui/yahoo/yahoo-min.js”></script><script src=“/static/00ed394c/scripts/yui/dom/dom-min.js”></script><script src="/static/00ed394c/scr
ipts/yui/event/event-min.js"></script><script src=“/static/00ed394c/scripts/yui/animation/animation-min.js”></script><script src=“/static/00ed394c/scripts/yui/dragdrop/dragdrop-min.js”></script><script src="/st
atic/00ed394c/scripts/yui/container/container-min.js"></script><script src=“/static/00ed394c/scripts/yui/connection/connection-min.js”></script><script src="/static/00ed394c/scripts/yui/datasource/datasource-mi
n.js"></script><script src=“/static/00ed394c/scripts/yui/autocomplete/autocomplete-min.js”></script><script src=“/static/00ed394c/scripts/yui/menu/menu-min.js”></script><script src="/static/00ed394c/scripts/yui
/element/element-min.js"></script><script src=“/static/00ed394c/scripts/yui/button/button-min.js”></script><script src=“/static/00ed394c/scripts/yui/storage/storage-min.js”></script><script src="/static/00ed394
c/scripts/hudson-behavior.js" type=“text/javascript”></script><script src=“/static/00ed394c/scripts/sortable.js” type=“text/javascript”></script><script>crumb.init(“Jenkins-Crumb”, "4bc6daf8af99b0c9d91ca4e84dc7
13c2″);</script><link rel=“stylesheet” href=“/static/00ed394c/scripts/yui/container/assets/container.css” type=“text/css” /><link rel=“stylesheet” href=“/static/00ed394c/scripts/yui/assets/skins/sam/skin.css” t
ype=“text/css” /><link rel=“stylesheet” href=“/static/00ed394c/scripts/yui/container/assets/skins/sam/container.css” type=“text/css” /><link rel=“stylesheet” href="/static/00ed394c/scripts/yui/button/assets/ski
ns/sam/button.css" type=“text/css” /><link rel=“stylesheet” href=“/static/00ed394c/scripts/yui/menu/assets/skins/sam/menu.css” type=“text/css” /><meta name=“ROBOTS” content=“INDEX,NOFOLLOW” /><meta name="viewpo
rt" content=“width=device-width, initial-scale=1” /><script src=“/adjuncts/00ed394c/org/kohsuke/stapler/jquery/jquery.full.js” type=“text/javascript”></script><script>var Q=jQuery.noConflict()</script><link rel
=“stylesheet” href=“/plugin/jquery-ui/css/jquery-ui-1.8.9.custom.css” type=“text/css” /><script src=“/plugin/jquery-ui/js/jquery-ui-1.8.9.custom.min.js”></script><script src="/static/00ed394c/jsbundles/page-ini
t.js" type=“text/javascript”></script></head><body data-model-type=“hudson.model.Hudson” id=“jenkins” class=“yui-skin-sam two-column jenkins-2.176.2” data-version=“2.176.2”><a href=“#skip2content” class="skipli
nk">Skip to content</a><div id=“page-head”><div id=“header”><div class=“logo”><a id=“jenkins-home-link” href=“/”><img src=“/static/00ed394c/images/headshot.png” alt=“[Jenkins]” id=“jenkins-head-icon” /><img src
=“/static/00ed394c/images/title.png” alt=“Jenkins” width=“139” id=“jenkins-name-icon” height=“34” /></a></div><div class=“login”> <a href=“/login?from=%2Fjob%2Ftest%2FbuildWithParameters%5C”><b>log in</b></a></
div><div class=“searchbox hidden-xs”><form role=“search” method=“get” name=“search” action=“/search/” style=“position:relative;” class=“no-json”><div id=“search-box-minWidth”></div><div id=“search-box-sizer”></
div><div id=“searchform”><input role=“searchbox” name=“q” placeholder=“search” id=“search-box” class=“has-default-text” /> <a href=“https://jenkins.io/redirect/search-box"><img src="/static/00ed394c/images/16×1
6/help.png" style=“width: 16px; height: 16px; ” class=“icon-help icon-sm” /></a><div id=“search-box-completion”></div><script>createSearchBox(“/search/”);</script></div></form></div></div><div id="breadcrumbBar
"><tr id=“top-nav”><td id=“left-top-nav” colspan=“2”><link rel=‘stylesheet’ href=‘/adjuncts/00ed394c/lib/layout/breadcrumbs.css’ type=‘text/css’ /><script src=‘/adjuncts/00ed394c/lib/layout/breadcrumbs.js’ type
=‘text/javascript’></script><div class=“top-sticker noedge”><div class=“top-sticker-inner”><div id=“right-top-nav”></div><ul id=“breadcrumbs”><li class=“item”><a href=“/” class=“model-link inside”>Jenkins</a></
li><li href=“/” class=“children”></li></ul><div id=“breadcrumb-menu-target”></div></div></div></td></tr></div></div><div id=“page-body” class=“clear”><div id=“side-panel”><div class=“task”><a href="https://jenk
ins.io/" class=“task-icon-link”><img src=“/static/00ed394c/images/24×24/next.png” style=“width: 24px; height: 24px; width: 24px; height: 24px; margin: 2px;” class=“icon-next icon-md” /></a> <a href="https://jen
kins.io/" class=“task-link”>Jenkins project</a></div><div class=“task”><a href=“https://jenkins.io/redirect/report-an-issue” class=“task-icon-link”><img src=“/static/00ed394c/images/24×24/gear2.png” style="widt
h: 24px; height: 24px; width: 24px; height: 24px; margin: 2px;" class=“icon-gear2 icon-md” /></a> <a href=“https://jenkins.io/redirect/report-an-issue” class=“task-link”>Bug tracker</a></div><div class=“task”><
a href=“https://jenkins.io/redirect/mailing-lists” class=“task-icon-link”><img src=“/static/00ed394c/images/24×24/search.png” style=“width: 24px; height: 24px; width: 24px; height: 24px; margin: 2px;” class="ic
on-search icon-md" /></a> <a href=“https://jenkins.io/redirect/mailing-lists” class=“task-link”>Mailing Lists</a></div><div class=“task”><a href=“https://twitter.com/jenkinsci” class=“task-icon-link”><img src="
/static/00ed394c/images/24×24/user.png" style=“width: 24px; height: 24px; width: 24px; height: 24px; margin: 2px;” class=“icon-user icon-md” /></a> <a href=“https://twitter.com/jenkinsci” class=“task-link”>Twit
ter: @jenkinsci</a></div></div><div id=“main-panel”><a name=“skip2content”></a><h1 style=“text-align: center”><img src=“/static/00ed394c/images/rage.png” width=“154” height=“179” /><span style=“font-size:50px”>
Oops!</span></h1><div id=“error-description”><p>A problem occurred while processing the request.
Please check <a href=“https://jenkins.io/redirect/issue-tracker">our bug tracker</a> to see if a similar problem has already been reported.
If it is already reported, please vote and put a comment on it to let us gauge the impact of the problem.
If you think this is a new issue, please file a new issue.
When you file an issue, make sure to add the entire stack trace, along with the version of Jenkins and relevant plugins.
<a href=“https://jenkins.io/redirect/users-mailing-list">The users list</a> might be also useful in understanding what has happened.</p><h2>Stack trace</h2><pre style=“margin:2em; clear:both”>net.sf.jso
n.JSONException: A JSONObject text must begin with ‘{’ at character 1 of token contains an invalid number of segments
at net.sf.json.util.JSONTokener.syntaxError(JSONTokener.java:499)
at net.sf.json.JSONObject.fromJSONTokener(JSONObject.java:919)
at net.sf.json.JSONObject.fromString(JSONObject.java:1145)
at net.sf.json.JSONObject.fromObject(JSONObject.java:162)
at net.sf.json.JSONObject.fromObject(JSONObject.java:132)
at io.kubesphere.jenkins.devops.auth.KubesphereApiTokenAuthenticator.getReviewResponseFromApiServer(KubesphereApiTokenAuthenticator.java:128)
at io.kubesphere.jenkins.devops.auth.KubesphereApiTokenAuthenticator.getReviewResponse(KubesphereApiTokenAuthenticator.java:95)
at io.kubesphere.jenkins.devops.auth.KubesphereApiTokenAuthenticator.authenticate(KubesphereApiTokenAuthenticator.java:43)
at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:79)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1701)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1668)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.Server.handle(Server.java:502)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)
at java.lang.Thread.run(Thread.java:748)
</pre></div></div></div><footer><div class=“container-fluid”><div class=“row”><div class=“col-md-6” id=“footer”></div><div class=“col-md-18”><span class=“page_generated”>Page generated: Oct 22, 2020 3:15:29 PM
UTC</span><span class=“rest_api”><a href=“api/”>REST API</a></span><span class=“jenkins_ver”><a href=“https://jenkins.io/">Jenkins ver. 2.176.2</a></span></div></div></div></footer></body></html>