Jenkins plugin address
https://plugins.jenkins.io/qy-wechat-notification/
GitHub address
https://github.com/jenkinsci/qy-wechat-notification-plugin
Configuration and use
pipeline
pipeline {
agent any
stages {
stage('Hello') {
steps {
echo 'Hello World'
}
}
}
post{
success{
qyWechatNotification failNotify: true, mentionedId: '需要通知UserID', mentionedMobile: '需要通知的通知手机号码', webhookUrl: 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxx-xxxxxx-xxxxxx', moreInfo:'额外的信息'
}
failure{
qyWechatNotification failNotify: true, mentionedId: '需要通知UserID', mentionedMobile: '需要通知的通知手机号码', webhookUrl: 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxx-xxxxxx-xxxxxx', moreInfo:'额外的信息'
}
}
}
running result
Project Development
mvn org.jenkins-ci.tools:maven-hpi-plugin:run
- Open the Jenkins address
http://127.0.0.1:8080/jenkins
- Project DEBUG
set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n
- project packaging
mvn package
- More support
If you need more support, please leave a message through the address below
https://itwake.blog.csdn.net/article/details/122043499