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

Add support for mattermost plugin

XMLWordPrintable

      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 ''		  
      	    }	    
        }
      

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

              Created:
              Updated:
              Resolved: