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

'undefined method `extensions'' on processing Multiple SCMs projects

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: gitlab-hook-plugin
    • Labels:
      None
    • Environment:
      jenkins: 1.614
      gitlab-hook-plugin: 1.4.0
      multiple-scms: 0.4

      (also occurs on)
      jenkins: 1.609.1
      gitlab-hook-plugin: 1.4.0
      multiple-scms: 0.5
    • Similar Issues:

      Description

      Since gitlab-hook-plugin 1.4.0 when processing projects that contain Multiple SCMs as Source Code Management, the following exception occurred:

        undefined method `extensions' for # <Java::OrgJenkinsciPluginsMultiplescms::MultiSCM:0x6889f57f>
      org.jruby.exceptions.RaiseException: (NoMethodError) undefined method `extensions' for #<Java::OrgJenkinsciPluginsMultiplescms::MultiSCM:0x6889f57f>
              at GitlabWebHook::Project.pre_build_merge(/var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/models/values/project.rb:112)
              at GitlabWebHook::Project.pre_build_merge?(/var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/models/values/project.rb:63)
              at GitlabWebHook::Project.merge_to?(/var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/models/values/project.rb:67)
              at GitlabWebHook::Project.matches?(/var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/models/values/project.rb:55)
              at RUBY.get_projects_to_process(/var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/models/use_cases/process_commit.rb:36)
              at org.jruby.RubyArray.select!(org/jruby/RubyArray.java:2435)
              at RUBY.get_projects_to_process(/var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/models/use_cases/process_commit.rb:35)
              at RUBY.with(/var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/models/use_cases/process_commit.rb:15)
              at RUBY.process_projects(/var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/models/api.rb:46)
              at RUBY.POST /build_now(/var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/models/api.rb:30)
      ....
      

      It worked ok in 1.3.1

        Attachments

          Activity

            People

            Assignee:
            javiplx Javier Palacios
            Reporter:
            velma911 Anton Velma
            Votes:
            10 Vote for this issue
            Watchers:
            10 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: