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

gitlab api plugin exception when scanning organization folder with gitlab branch plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • None
    • gitlab ee 17.2.0 (self hosted)
      jenkins 2.462.1
      gitlab api plugin 5.6.0
      gitlab branch source plugin 704
      java 21 on jenkins controller
    • 710.v6f19df32544b_

      the following exception appears in jenkins controller log when trying to scan an organizational folder using the gitlab branch plugin:

       
      2024-08-22 11:14:44.494+0000 [id=1039] INFO j.b.OrganizationFolder$OrganizationScan#run: gitlab multibranch/test #20240822.141441 organization scan action completed: NOT_BUILT in 3.1 sec
      2024-08-22 11:14:44.494+0000 [id=1039] SEVERE hudson.model.Executor#finish1: Executor threw an exception
      java.lang.NoSuchMethodError: 'org.gitlab4j.api.models.ProjectHook org.gitlab4j.api.ProjectApi.addHook(java.lang.Object, java.lang.String, org.gitlab4j.api.models.ProjectHook, boolean, java.lang.String)'
      at PluginClassLoader for gitlab-branch-source//io.jenkins.plugins.gitlabbranchsource.GitLabHookCreator.createWebHookWhenMissing(GitLabHookCreator.java:231)
      at PluginClassLoader for gitlab-branch-source//io.jenkins.plugins.gitlabbranchsource.GitLabSCMNavigator.visitSources(GitLabSCMNavigator.java:303)
      at PluginClassLoader for branch-api//jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:530)
      at PluginClassLoader for cloudbees-folder//com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:269)
      at PluginClassLoader for cloudbees-folder//com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:167)
      at PluginClassLoader for branch-api//jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:915)
      at hudson.model.ResourceController.execute(ResourceController.java:101)
      at hudson.model.Executor.run(Executor.java:446)
       

      it did not happen using the previous version of the gitlab api plugin (same gitlab version).

      we are currently unable to add new git repos to our ci flows.

      i believe the following change has something to do with it: https://github.com/gitlab4j/gitlab4j-api/pull/1123/files

      is there any more information needed to help solve this issue?

            basil Basil Crow
            amidar Amit Dar
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: