Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-46296

Illegal Access error BitbucketBuildStatusNotifications

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins v2.60.2
      Bitbucket Branch Source Plugin 2.2.2 and 2.2.3

      SInce the last update, all my builds are failing, but I did'nt change any configuration.
      I tried to rollback to last update but the problem persists. 

      It seems like BitbucketStatusNotificationPlugin is trying to access some Mercurial class...

      The project is a multibranch pipeline. 

      Any help would be much appreciated.

      Thanks!

      Here is the output : 

       Started by user Olivier
       Checking out git REPO_URL
       into /var/jenkins_home/workspace/TaaS_API_TaaS_develop-HDR4FYYRLEPSYBGEYT6L5UEWPW5HVQDT5PW7ZBCJ6VTGPTYLU6OQ@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
      
      

       

            Unassigned Unassigned
            olivieregm Olivier Tosello
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: