Giter Site home page Giter Site logo

721806280 / feishu-notification-plugin Goto Github PK

View Code? Open in Web Editor NEW
41.0 41.0 15.0 317 KB

飞书 Jenkins 插件

Home Page: https://721806280.github.io/feishu-notification-plugin-doc

License: MIT License

Java 94.97% HTML 2.33% JavaScript 2.63% CSS 0.07%

feishu-notification-plugin's People

Contributors

721806280 avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

feishu-notification-plugin's Issues

求助:处理当前请求时发生了错误。

您好,我安装了插件,然后在测试是提示报错:处理当前请求时发生了错误。Logging ID=f00f0b3b-493d-4908-8679-c2f29a784cdc。
从网关查询,也没有到open.feishu.cn的数据包,请问这个可能是什么原因呢?非常感谢。

Jenkins版本:2.413(最新)
Docker安装
CentOS 7
所有插件都已更新到最新。

再次感谢。

image
image
image

自定义消息 无法展示图片

[飞书插件]发送的消息详情: {"type":"INTERACTIVE","atOpenIds":[],"atAll":false,"title":"📢 ohla-android_official 成功","text":"📋 任务名称ohla-android_official\n🔢 任务编号#1591\n🌟 构建状态: 成功\n🕐 构建用时: 14 min\n👤 执 行 者: peter\n* 环境:dev\n* 代码分支:origin/20230925迭代环境还原\n* 输出日志:false\n* 渠道:google\n* 安卓白包更新内容 👇🏻\n* 更新内容\n* 校验tapd上已解决的问题\n* 👇🏻\n* 安装包\n二维码","buttons":[{"tag":"button","title":"更改记录","url":"http://jenkins.ohlaapp.com/job/ohla-android_official/1591//changes","type":"primary","text":{"tag":"plain_text","content":"更改记录"}},{"tag":"button","title":"控制台","url":"http://jenkins.ohlaapp.com/job/ohla-android_official/1591//console","type":"primary","text":{"tag":"plain_text","content":"控制台"}}],"at":{"atOpenIds":[],"isAtAll":false}}
Finished: SUCCESS

开启签名校验无法正常发送通知

在系统配置页面使用不加密方式可以测试发送,使用加密方式测试发送也无法发送。

在Freestyle任务的任务配置的地方不可以用,无论是加密方式还是非加密方式。
image

在Pipeline任务内配置脚本可以通知,配置如下,但是和上面一样的位置去配置就无效。只有在pipeline内使用feiShuTalk方法才有效

`pipeline {
agent any

stages {
    stage('Hello') {
        steps {
            echo 'Hello World'
        }
    }

    stage('text'){
        steps {
            echo '发送卡片消息...'
        }
        post {
            success {
                feiShuTalk (
                    robot: 'jenkins-feishu',
                    type: 'INTERACTIVE',
                    title: '📢 Jenkins 构建通知',
                    text: [
                        '📋 **任务名称**:[${JOB_NAME}](${JOB_URL})',
                        '🔢 **任务编号**:[${BUILD_DISPLAY_NAME}](${BUILD_URL})',
                        '🌟 **构建状态**: <font color="green">成功</font>',
                        '🕐 **构建用时**: 2 ms and counting',
                        '👤 **执  行 者**: Started by user anonymous',
                        '<at id=all></at>'
                    ],
                    buttons: [
                       [
                          title: '更改记录',
                          url: '${BUILD_URL}changes'
                       ],
                       [
                          title: '控制台',
                          type: 'danger',
                          url: '${BUILD_URL}console'
                       ]
                    ]
                )
            }
        }
    }
}

}
`
环境
jenkins 2.393 docker安装版

自定义消息支持消息卡片搭建平台生成的消息体

需求:
1、我希望发送飞书卡片消息时候,能够定义header,如template字段,我希望在构建失败时发送红色标题的卡片。目前找不到定义
2、鉴于飞书机器人消息体的复杂性,能否开放一些更底层的消息body构造方式能够接受更多的body构造。而类型化的body构造用于便捷操作。

很喜欢你的文章!!

hi~我是飞书开发者广场的运营同学,之前看到你这篇文章想法很不错,正好我们广场在做征稿活动,想问问能不能收录你的文章呀~

求助:获取git commit message

目前使用的是 Freestyle 项目,
现在可以获取到git branchName,但git commit message 在环境变量里好像没有体现,
想问下如果获取git commit message呢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.