自上次插件更新以來,我所有的構建都失敗了,但我沒有更改任何配置。 我試圖回滾到最新版本的插件,但問題仍然存在。Jenkins與插件bitbucket分支源插件錯誤
好像BitbucketStatusNotificationPlugin試圖訪問一些水銀類...
該項目是一個多分支管道。 這個問題也引用了詹金斯項目的官方JIRA JENKINS-46296
任何幫助將不勝感激。
謝謝!
這裏是輸出:
Started by user Olivier
Checking out git REPO_URL
into /var/jenkins_home/workspace/TaaS_API_Ta[email protected]script to read Jenkinsfile
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url
timeout=10
Fetching without tags
Fetching upstream changes from REPO_URL
> git --version # timeout=10
using GIT_ASKPASS to set credentials Bitbucket pass
> git fetch --no-tags --progress
+refs/heads/develop:refs/remotes/origin/develop
Checking out Revision 5fa34124eb6be5ab7242633a97cced7de4e7af5e (develop)
Commit message: "Finish team"
> git config core.sparsecheckout # timeout=10
> git checkout -f 5fa34124eb6be5ab7242633a97cced7de4e7af5e
> git rev-list 5fa34124eb6be5ab7242633a97cced7de4e7af5e # timeout=10
java.lang.IllegalAccessError: tried to access class hudson.plugins.mercurial.MercurialSCMSource$MercurialRevision from class com.cloudbees.jenkins.plugins.bitbucket.BitbucketBuildStatusNotifications
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketBuildStatusNotifications.getHash(BitbucketBuildStatusNotifications.java:124)
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketBuildStatusNotifications.sendNotifications(BitbucketBuildStatusNotifications.java:104)
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketBuildStatusNotifications.access$000(BitbucketBuildStatusNotifications.java:54)
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketBuildStatusNotifications$JobCheckOutListener.onCheckout(BitbucketBuildStatusNotifications.java:14
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:127)
at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:130)
at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:120)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:263)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:405)
Finished: FAILURE
我也面臨同樣的問題。 –