jenkins2 分支索引 : java. lang.IllegalArgumentException:byteString == null

标签 jenkins jenkins-plugins jenkins-2

目前,分支索引对我来说已损坏 - 这发生在旧工作以及尝试创建新工作时。它已经在使用相同版本的 jenkins ( 2.0-beta1 ) - 不确定是什么破坏了它 - 这台服务器上的互联网和时间也很好(认为这可能是因为它源于证书问题):

Branch Indexing Log

Started by timer
FATAL: Failed to recompute children of PassAndroid
java.lang.IllegalArgumentException: byteString == null
    at okio.Buffer.write(Buffer.java:787)
    at com.squareup.okhttp.Cache$Entry.readCertificateList(Cache.java:628)
    at com.squareup.okhttp.Cache$Entry.<init>(Cache.java:555)
    at com.squareup.okhttp.Cache.get(Cache.java:194)
    at com.squareup.okhttp.Cache$1.get(Cache.java:139)
    at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:226)
    at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:438)
    at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:389)
    at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:502)
    at com.squareup.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105)
    at com.squareup.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:25)
    at org.kohsuke.github.Requester.parse(Requester.java:479)
    at org.kohsuke.github.Requester._to(Requester.java:236)
    at org.kohsuke.github.Requester.to(Requester.java:203)
    at org.kohsuke.github.GitHub.isCredentialValid(GitHub.java:447)
    at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:224)
    at jenkins.scm.api.SCMSource.fetch(SCMSource.java:146)
    at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:296)
    at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:151)
    at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:122)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:410)
Finished: FAILURE

任何人也经历过这种情况,也许有解决方法?
我在此处将其作为错误提交:https://github.com/kohsuke/github-api/issues/265 - 但仍然会对解决方法感兴趣,因为这会阻止我现在使用 jenkins

最佳答案

问题是缓存损坏

rm -rf org.jenkinsci.plugins.github.GitHubPlugin.cache/

为我解决了问题

关于jenkins2 分支索引 : java. lang.IllegalArgumentException:byteString == null,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36336188/

相关文章:

jenkins - jenkins中自由式项目和管道之间的区别

docker - 如何在 Jenkins 中运行 docker 镜像

java - 在 jenkins 中配置 maven 项目时出现异常

jenkins - Sonar + Jenkins-无法确定数据库方言

github - 如何使用 Jenkinsfile 设置 github 提交状态而不使用拉取请求构建器

Jenkins:如何在 git 标签上触发管道

html - Jenkins 从 API 触发作业

android - 为多应用程序 android 项目设置 Jenkins

jenkins - 如何将 Jenkins 构建历史从一台服务器复制到另一台服务器?

maven - 如果步骤不稳定,Jenkins管道将失败