2019-03-26 13:14:29 +02:00
|
|
|
# ${docGenStepName}
|
2019-02-13 17:45:35 +02:00
|
|
|
|
2019-03-26 13:14:29 +02:00
|
|
|
## ${docGenDescription}
|
2019-02-13 17:45:35 +02:00
|
|
|
|
2019-03-26 13:14:29 +02:00
|
|
|
## Prerequisites
|
2019-02-13 17:45:35 +02:00
|
|
|
|
2019-05-08 10:17:44 +02:00
|
|
|
* Installed and configured [Slack JenkinsCI integration](https://my.slack.com/services/new/jenkins-ci)
|
|
|
|
* *secret text* Jenkins credentials with the Slack token
|
2019-05-22 17:11:15 +02:00
|
|
|
* Installed and configured [Jenkins Slack plugin](https://github.com/jenkinsci/slack-plugin#install-instructions-for-slack)
|
2019-02-13 17:45:35 +02:00
|
|
|
|
2019-03-26 13:14:29 +02:00
|
|
|
## ${docGenParameters}
|
2019-02-13 17:45:35 +02:00
|
|
|
|
2019-03-26 13:14:29 +02:00
|
|
|
## ${docGenConfiguration}
|
2019-02-13 17:45:35 +02:00
|
|
|
|
2019-05-24 15:44:31 +02:00
|
|
|
## ${docJenkinsPluginDependencies}
|
2019-05-24 15:41:49 +02:00
|
|
|
|
2019-02-13 17:45:35 +02:00
|
|
|
## Example
|
|
|
|
|
|
|
|
Usage of pipeline step:
|
|
|
|
|
|
|
|
```groovy
|
2019-03-26 13:14:29 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
|
|
|
echo "do something"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
slackSendNotification script: this
|
|
|
|
}
|
2019-02-13 17:45:35 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|