github.com/xgoffin/jenkins-library@v1.154.0/documentation/docs/steps/slackSendNotification.md (about)

     1  # ${docGenStepName}
     2  
     3  ## ${docGenDescription}
     4  
     5  ## Prerequisites
     6  
     7  * Installed and configured [Slack JenkinsCI integration](https://my.slack.com/services/new/jenkins-ci)
     8  * *secret text* Jenkins credentials with the Slack token
     9  * Installed and configured [Jenkins Slack plugin](https://github.com/jenkinsci/slack-plugin#install-instructions-for-slack)
    10  
    11  ## ${docGenParameters}
    12  
    13  ## ${docGenConfiguration}
    14  
    15  ## ${docJenkinsPluginDependencies}
    16  
    17  ## Example
    18  
    19  Usage of pipeline step:
    20  
    21  ```groovy
    22  pipeline {
    23    agent any
    24    stages {
    25      stage('Build') {
    26        steps {
    27          echo "do something"
    28        }
    29      }
    30    }
    31    post {
    32      always {
    33        slackSendNotification script: this
    34      }
    35    }
    36  }
    37  ```