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

Not possible to set endpoint for mattermostNotifier using JobDSL script since version 2.7.1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: mattermost-plugin
    • Labels:
      None
    • Environment:
      mattermost-plugin: 2.7.1
      job-dsl-plugin: 1.76
      Jenkins: 2.176.3
    • Similar Issues:

      Description

      Since mattermost-plugin version 2.7.1 (where endpoint type was changed from String to Secret) it's not possible to set endpoint configuration for mattermostNotifier with a JobDSL script.

      Follwoing JobDS script

      mattermostNotifier {
          endpoint('https://MATTERMOST/hooks/xxxxxxxxxxxx')
          notifyFailure(true)
          notifyUnstable(true)
      }
      

      causes follwoing error:

      ERROR: (unknown source) No signature of method: javaposse.jobdsl.plugin.structs.DescribableContext.endpoint() is applicable for argument types: (java.lang.String) values: [https://MATTERMOST/hooks/xxxxxxxxxxxx]
      

        Attachments

          Activity

          volodja Volodja created issue -
          jovandeginste Jo Vandeginste made changes -
          Hide
          jovandeginste Jo Vandeginste added a comment -

          This should now be fixed (in v3.0.0)

          Show
          jovandeginste Jo Vandeginste added a comment - This should now be fixed (in v3.0.0)
          jovandeginste Jo Vandeginste made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Hide
          jovandeginste Jo Vandeginste added a comment -

          Version 3.0.0 released

          Show
          jovandeginste Jo Vandeginste added a comment - Version 3.0.0 released
          jovandeginste Jo Vandeginste made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]

            People

            Assignee:
            jovandeginste Jo Vandeginste
            Reporter:
            volodja Volodja
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: