qy wechat notification plugin
1.0.0
This plug-in is suitable for partners who work on "Enterprise WeChat" and uses group robots for status notification when building Jenkins projects.
Requires no less than Enterprise WeChat version 2.8.7
右键
the group name. 构建后操作
at the bottom of the Jenkins project, add企业微信通知配置
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
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
If you need more support, please leave a message at the address below
https://itwake.blog.csdn.net/article/details/122043499