詹金斯工作流多分支与git-IllegalStateException [英] Jenkins workflow-multibranch with git - IllegalStateException

查看:355
本文介绍了詹金斯工作流多分支与git-IllegalStateException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用git使用Jenkins的工作流多分支插件来创建多分支作业.在正常的工作流作业中正常工作的凭据在尝试为分支建立索引时会在多分支作业中产生以下错误:

I'm trying to create a multibranch job using the workflow-multibranch plugin to Jenkins with git. The credentials that work fine in a normal workflow job produces the following errors in the multibranch job when trying to index the branches:

    Started
Setting origin to git@github.com:XXXXX/XXXXXXX.git
Fetching origin...
FATAL: Failed to recompute children of Branch Indexing
java.lang.IllegalStateException: Cannot open session, connection is not authenticated.
    at com.trilead.ssh2.Connection.openSession(Connection.java:1127)
    at org.jenkinsci.plugins.gitclient.trilead.TrileadSession.exec(TrileadSession.java:32)
    at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:262)
    at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:161)
    at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
    at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
    at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1138)
    at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130)
    at org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:672)
    at jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:171)
    at jenkins.scm.api.SCMSource.fetch(SCMSource.java:141)
    at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:295)
    at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:151)
    at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:106)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:410)
Finished: FAILURE

尽管Jenkins本身的版本为1.636,而最新的版本为1.642,但我一直在更新插件.

I'm up to date on plugins, although Jenkins itself is at 1.636 where the latest is 1.642.

有什么我想念的吗?

推荐答案

听起来像Git插件中的错误,但无论如何都要安装GitHub Branch Source插件,它比通用连接要好.

Sounds like a bug in the Git plugin, but anyway install the GitHub Branch Source plugin which will work better than a generic connection.

这篇关于詹金斯工作流多分支与git-IllegalStateException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆