Jenkins plug-in: Enterprise WeChat Jenkins build notification plug-in Qy Wechat Notification

Jenkins plugin address


https://plugins.jenkins.io/qy-wechat-notification/

GitHub address


https://github.com/jenkinsci/qy-wechat-notification-plugin

Configuration and use

insert image description here
insert image description here
insert image description here
insert image description here

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

insert image description here
insert image description here
insert image description here

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

Guess you like

Origin blog.csdn.net/a772304419/article/details/132274448