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

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

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

              Created:
              Updated:
              Resolved: