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

gitlab-plugin Pipeline compatibility broken with version 1.5.7

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: gitlab-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.121.1
      gitlab-plugin 1.5.7
    • Similar Issues:
    • Released As:
      1.5.11

      Description

      properties([
        gitLabConnection('my-gitlab-server')
      ])
      

      causes

      java.lang.NoSuchMethodError: No such DSL method 'gitLabConnection' found

      And the gitlabCommitStatus block is also broken:

      gitlabCommitStatus('checkout') {
        echo 'whatever'
      }
      

      causes

      java.lang.IllegalArgumentException: Expected named arguments but got checkout

      Please keep this plugin backwards compatible!

        Attachments

          Activity

          Hide
          owenmehegan Owen Mehegan added a comment - - edited

          Resolution will be tracked in https://github.com/jenkinsci/gitlab-plugin/issues/789. For the record, it was not intended that this would be an incompatible change, obviously there is a gap in our testing.

          Show
          owenmehegan Owen Mehegan added a comment - - edited Resolution will be tracked in https://github.com/jenkinsci/gitlab-plugin/issues/789 . For the record, it was not intended that this would be an incompatible change, obviously there is a gap in our testing.
          Hide
          owenmehegan Owen Mehegan added a comment -

          Released as 1.5.8.

          Show
          owenmehegan Owen Mehegan added a comment - Released as 1.5.8.
          Hide
          cobexer Ing. Christoph Obexer added a comment -

          I tried updating to the GitLab-Plugin version 1.5.10 today (on Jenkins 2.143 all other plugins up to date too) and got the same exception again.

          Show
          cobexer Ing. Christoph Obexer added a comment - I tried updating to the GitLab-Plugin version 1.5.10 today (on Jenkins 2.143 all other plugins up to date too) and got the same exception again.
          Hide
          bherfurth Ben Herfurth added a comment -

          Any comment on this? Is it save to update to 1.5.10 or is it again broken?

          Show
          bherfurth Ben Herfurth added a comment - Any comment on this? Is it save to update to 1.5.10 or is it again broken?
          Hide
          owenmehegan Owen Mehegan added a comment -

          I just released 1.5.11 which should fix this; works now when I test it.

          Show
          owenmehegan Owen Mehegan added a comment - I just released 1.5.11 which should fix this; works now when I test it.

            People

            Assignee:
            owenmehegan Owen Mehegan
            Reporter:
            cobexer Ing. Christoph Obexer
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: