721806280 / feishu-notification-plugin Goto Github PK
View Code? Open in Web Editor NEW飞书 Jenkins 插件
Home Page: https://721806280.github.io/feishu-notification-plugin-doc
License: MIT License
飞书 Jenkins 插件
Home Page: https://721806280.github.io/feishu-notification-plugin-doc
License: MIT License
请问Freestyle 项目如何配置imagekey呢 , 让他正常显示图片
希望也可以支持海外版本的lark, 毕竟他们是同一家API
[飞书插件]发送的消息详情: {"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
测试OK,实际job里无法发送
在系统配置页面使用不加密方式可以测试发送,使用加密方式测试发送也无法发送。
在Freestyle任务的任务配置的地方不可以用,无论是加密方式还是非加密方式。
在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构造用于便捷操作。
增加一个输入内容自动生成二维码并上传飞书拿到 image_key以便在消息卡片中显示
大佬您好:
例如我希望在发消息前,动态对jenkins失败记录的文本进行提取,然后再发送消息。是否考虑支持这样的特性。能在发消息前插入一段脚本来实现。
hi~我是飞书开发者广场的运营同学,之前看到你这篇文章想法很不错,正好我们广场在做征稿活动,想问问能不能收录你的文章呀~
目前使用的是 Freestyle 项目,
现在可以获取到git branchName,但git commit message 在环境变量里好像没有体现,
想问下如果获取git commit message呢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.