Jenkins Multibranch:索引错误com.fasterxml.jackson.core.JsonParseException

问题描述 投票:0回答:1

我有不同的multibranch管道配置和触发基于分支,拉请求和GitHub存储库中的标签。

它按预期工作,但最近我无法弄清楚在索引步骤期间存储库扫描失败,并出现以下错误。

我是Jenkins和插件的新手,需要一些指导。

ERROR: [Mon Feb 18 06:14:37 UTC 2019] Could not update folder level actions from source HASH

com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
 at [Source: (StringReader); line: 1, column: 2]
    at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1804)
    at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:693)
    at com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:591)
    at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleOddValue(ReaderBasedJsonParser.java:1902)
    at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:757)
    at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:4141)
    at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4000)
    at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3004)
    at org.kohsuke.github.Requester.parse(Requester.java:629)

Caused: org.kohsuke.github.HttpException: Server returned HTTP response code: 200, message: 'OK' for URL: GITHUB REPO URL
    at org.kohsuke.github.Requester.parse(Requester.java:646)
    at org.kohsuke.github.Requester.parse(Requester.java:607)
    at org.kohsuke.github.Requester._to(Requester.java:285)
    at org.kohsuke.github.Requester.to(Requester.java:247)
    at org.kohsuke.github.GitHub.getRepository(GitHub.java:475)
    at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieveActions(GitHubSCMSource.java:1669)
    at jenkins.scm.api.SCMSource.fetchActions(SCMSource.java:765)
    at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:591)
    at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:277)
    at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165)
    at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1025)
    at hudson.model.ResourceController.execute(ResourceController.java:97)
    at hudson.model.Executor.run(Executor.java:429)
[Mon Feb 18 06:14:37 UTC 2019] Finished branch indexing. Indexing took 0.27 sec
git github jenkins-pipeline jenkins-plugins multibranch-pipeline
1个回答
0
投票

很有可能连接以某种方式失败并返回HTML而不是json;因此会显示意外字符“<”错误。检查Github URL,'URL:GITHUB REPO URL'是占位符吗?是否涉及任何代理?

© www.soinside.com 2019 - 2024. All rights reserved.