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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • gitlab-hook-plugin
    • None
    • 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

      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

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

              Created:
              Updated:
              Resolved: