Plugin: https://github.com/jenkinsci/mattermost-plugin

      <jenkins.plugins.mattermost.MattermostNotifier plugin="mattermost@1.4.0">
            <endpoint>https://mattermost.my-company.de/hooks/um9hcztr1jfnzgph6397pcoeur</endpoint>
            <buildServerUrl>http://jenkins.my-company.de/</buildServerUrl>
            <room>Team XYZ</room>
            <icon></icon>
            <startNotification>false</startNotification>
            <notifySuccess>false</notifySuccess>
            <notifyAborted>false</notifyAborted>
            <notifyNotBuilt>false</notifyNotBuilt>
            <notifyUnstable>false</notifyUnstable>
            <notifyFailure>true</notifyFailure>
            <notifyBackToNormal>true</notifyBackToNormal>
            <notifyRepeatedFailure>true</notifyRepeatedFailure>
            <includeTestSummary>true</includeTestSummary>
            <showCommitList>false</showCommitList>
            <includeCustomMessage>false</includeCustomMessage>
            <customMessage></customMessage>
          </jenkins.plugins.mattermost.MattermostNotifier>
      

      Currrently I use this workaround using configure:

      configure { node ->	
      	    node / publishers / 'jenkins.plugins.mattermost.MattermostNotifier'(plugin:'mattermost@1.4.0') {
      	      endpoint 'https://mattermost.my-company.de/hooks/um9hcztr1jfnzgph6397pcoeur'
      	      buildServerUrl 'http://jenkins.my-company.de/'
      	      room 'Team XYZ'
      	      icon 'http://jenkins.my-company.de/static/3d886fd0/images/headshot.png'
      	      startNotification 'false'
      	      notifySuccess 'false'
                    notifyAborted 'false'
                    notifyNotBuilt 'false'
                    notifyUnstable 'true'              
      	      notifyFailure 'true'    
      	      notifyBackToNormal 'true'    
      	      notifyRepeatedFailure 'true'    
      	      includeTestSummary 'true'
      	      showCommitList 'false'
      	      includeCustomMessage 'false'
      	     customMessage ''		  
      	    }	    
        }
      

          [JENKINS-32764] Add support for mattermost plugin

          Eduard Angold added a comment -

          I added support for the Mattermost Plugin, but didn't test it thoroughly. Would be nice to get some feedback if everything is working as expected.

          https://github.com/jenkinsci/job-dsl-plugin/pull/738

          Eduard Angold added a comment - I added support for the Mattermost Plugin, but didn't test it thoroughly. Would be nice to get some feedback if everything is working as expected. https://github.com/jenkinsci/job-dsl-plugin/pull/738

          Code changed in jenkins
          User: eddyhub
          Path:
          docs/Home.md
          job-dsl-core/src/main/docs/examples/javaposse/jobdsl/dsl/helpers/publisher/PublisherContext/mattermost.groovy
          job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/publisher/MattermostPublisherContext.groovy
          job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/publisher/PublisherContext.groovy
          job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/helpers/publisher/PublisherContextSpec.groovy
          http://jenkins-ci.org/commit/job-dsl-plugin/3ed3ec704caa70117734ad8a9cecce6108da026d
          Log:
          Added support for Mattermost Plugin: https://issues.jenkins-ci.org/browse/JENKINS-32764

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: eddyhub Path: docs/Home.md job-dsl-core/src/main/docs/examples/javaposse/jobdsl/dsl/helpers/publisher/PublisherContext/mattermost.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/publisher/MattermostPublisherContext.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/publisher/PublisherContext.groovy job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/helpers/publisher/PublisherContextSpec.groovy http://jenkins-ci.org/commit/job-dsl-plugin/3ed3ec704caa70117734ad8a9cecce6108da026d Log: Added support for Mattermost Plugin: https://issues.jenkins-ci.org/browse/JENKINS-32764

          Code changed in jenkins
          User: Daniel Spilker
          Path:
          docs/Home.md
          job-dsl-core/src/main/docs/examples/javaposse/jobdsl/dsl/helpers/publisher/PublisherContext/mattermost.groovy
          job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/publisher/MattermostPublisherContext.groovy
          job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/publisher/PublisherContext.groovy
          job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/helpers/publisher/PublisherContextSpec.groovy
          http://jenkins-ci.org/commit/job-dsl-plugin/3f659bedfb5e036ad510d3b5c7e14fcfae27d3be
          Log:
          Merge remote-tracking branch 'eddyhub/JENKINS-32764'

          Compare: https://github.com/jenkinsci/job-dsl-plugin/compare/3f647d3f46db...3f659bedfb5e

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Spilker Path: docs/Home.md job-dsl-core/src/main/docs/examples/javaposse/jobdsl/dsl/helpers/publisher/PublisherContext/mattermost.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/publisher/MattermostPublisherContext.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/publisher/PublisherContext.groovy job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/helpers/publisher/PublisherContextSpec.groovy http://jenkins-ci.org/commit/job-dsl-plugin/3f659bedfb5e036ad510d3b5c7e14fcfae27d3be Log: Merge remote-tracking branch 'eddyhub/ JENKINS-32764 ' Compare: https://github.com/jenkinsci/job-dsl-plugin/compare/3f647d3f46db...3f659bedfb5e

          Will be released in 1.44.

          Daniel Spilker added a comment - Will be released in 1.44.

            eddyhub Eduard Angold
            dyrssen Kai Dyrssen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: