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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Component/s: mattermost-plugin
    • None
    • Environment:
      mattermost-plugin: 2.7.1
      job-dsl-plugin: 1.76
      Jenkins: 2.176.3

      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]
      

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

              Created:
              Updated:
              Resolved: