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

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

    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

          velma911 Anton Velma created issue -
          velma911 Anton Velma made changes -
          Field Original Value New Value
          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
          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 #
          {code:java}
          <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)
          ....
          {code}


          It worked ok in 1.3.1
          velma911 Anton Velma made changes -
          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 #
          {code:java}
          <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)
          ....
          {code}


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

          {code:java}
            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)
          ....
          {code}


          It worked ok in 1.3.1
          robduff Rob Duff made changes -
          Environment jenkins: 1.614
          gitlab-hook-plugin: 1.4.0
          multiple-scms: 0.4
          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
          javiplx Javier Palacios made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          ilpianista Andrea Scarpino made changes -
          Attachment config.xml [ 31593 ]
          javiplx Javier Palacios made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          javiplx Javier Palacios made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 163668 ] JNJira + In-Review [ 208862 ]

            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: