jenkins插件地址
https://plugins.jenkins.io/qy-wechat-notification/
GitHub地址
https://github.com/jenkinsci/qy-wechat-notification-plugin
配置及使用




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:'额外的信息'
}
}
}运行效果



项目开发
mvn org.jenkins-ci.tools:maven-hpi-plugin:run- 打开Jenkins地址
http://127.0.0.1:8080/jenkins- 项目DEBUG
set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n- 项目打包
mvn package- 更多支持
需要更多的支持请通过下方地址进行留言










