Code Monkey home page Code Monkey logo

lark-notice-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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lark-notice-plugin's Issues

No subject alternative DNS name matching open.feishu.cn found.

jenkins版本2.446, 刚安装完成后,点击测试。发送测试消息没问题。在项目后配置好机器人发布项目也可以正常发送消息。但是隔一段时间后就无法发送飞书消息了,详细报错如下截图
在飞书插件配置中点击测试报错如下图
image

在项目构建发送消息的报错如下图
image

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

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

在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构造用于便捷操作。

jenkins最新版本2.446 安装插件后无法发送消息

Jenkins版本是最新版2.446,下载安装feishu-notifition.hpi插件,本地上传安装完成后,在插件页面点击测试,可以发送测试消息。但是在项目中不会发送消息,配置啥的全都勾选,正常情况应该能发送消息才对。是没有兼容jenkins最新版本?

没有发出消息,看日志有个空指针异常

之前一直用官方插件,最近更新后用不了,发现是apach httpclient版本的问题,折腾了半天依赖没下载好,找到这个仓库,非常感谢作者做的工作。

如题,安装正常。

配置了机器人,和webhook,测试按钮无法点击,配置到job 中,运行后发现如下错误。

image

jenkins 版本 Version 2.426.2

相关依赖。

名称  ↓ Maven ID 许可
"Java Concurrency in Practice" book annotations net.jcip:jcip-annotations:1.0 Creative Commons Attribution License
Annotation Indexer org.jenkins-ci:annotation-indexer:1.17 MIT License
ANTLR 4 Runtime org.antlr:antlr4-runtime:4.13.1 BSD-3-Clause
Apache Ant Core org.apache.ant:ant:1.10.14 The Apache Software License, Version 2.0
Apache Ant Launcher org.apache.ant:ant-launcher:1.10.14 The Apache Software License, Version 2.0
Apache Commons BeanUtils commons-beanutils:commons-beanutils:1.9.4 Apache License, Version 2.0
Apache Commons Codec commons-codec:commons-codec:1.16.0 Apache-2.0
Apache Commons Collections commons-collections:commons-collections:3.2.2 Apache License, Version 2.0
Apache Commons Compress org.apache.commons:commons-compress:1.24.0 Apache-2.0
Apache Commons FileUpload commons-fileupload:commons-fileupload:1.5 Apache-2.0
Apache Commons IO commons-io:commons-io:2.13.0 Apache-2.0
Apache Commons Jelly Core org.jenkins-ci:commons-jelly:1.1-jenkins-20230713 The Apache Software License, Version 2.0
Apache Groovy org.codehaus.groovy:groovy-all:2.4.21 The Apache Software License, Version 2.0
args4j args4j:args4j:2.33 MIT License
asm org.ow2.asm:asm:9.6 BSD-3-Clause
asm-analysis org.ow2.asm:asm-analysis:9.6 BSD-3-Clause
asm-commons org.ow2.asm:asm-commons:9.6 BSD-3-Clause
asm-tree org.ow2.asm:asm-tree:9.6 BSD-3-Clause
asm-util org.ow2.asm:asm-util:9.6 BSD-3-Clause
Bridge method injection annotations com.infradna.tool:bridge-method-annotation:1.29 MIT License
CodeMirror library from http://codemirror.net/ org.kohsuke.stapler:stapler-adjunct-codemirror:1.3 MIT License
Commons Discovery commons-discovery:commons-discovery:0.5 The Apache Software License, Version 2.0
Commons JEXL org.jenkins-ci:commons-jexl:1.1-jenkins-20111212 The Apache Software License, Version 2.0
Commons Lang commons-lang:commons-lang:2.6 The Apache Software License, Version 2.0
commons-jelly-tags-define org.jvnet.hudson:commons-jelly-tags-define:1.1-jenkins-20230713 The Apache Software License, Version 2.0
commons-jelly-tags-fmt commons-jelly:commons-jelly-tags-fmt:1.0 The Apache Software License, Version 2.0
commons-jelly-tags-xml commons-jelly:commons-jelly-tags-xml:1.1 The Apache Software License, Version 2.0
Custom Access Modifier annotations org.kohsuke:access-modifier-annotation:1.33 MIT License
dom4j org.dom4j:dom4j:2.1.4 Plexus
embedded_su for Java com.sun.solaris:embedded_su4j:1.1 MIT license
ezmorph net.sf.ezmorph:ezmorph:1.0.6 The Apache Software License, Version 2.0
Google Guice - Core Library com.google.inject:guice:6.0.0 The Apache Software License, Version 2.0
Guava InternalFutureFailureAccess and InternalFutures com.google.guava:failureaccess:1.0.1 The Apache Software License, Version 2.0
Guava ListenableFuture only com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0
Guava: Google Core Libraries for Java com.google.guava:guava:32.1.2-jre Apache License, Version 2.0
Internal SPI for WebSocket org.jenkins-ci.main:websocket-spi:2.426.2 The MIT license
Jakarta Annotations API jakarta.annotation:jakarta.annotation-api:2.1.1 EPL 2.0GPL2 w/ CPE
Jakarta Dependency Injection jakarta.inject:jakarta.inject-api:2.0.1 The Apache Software License, Version 2.0
jansi org.fusesource.jansi:jansi:1.11 The Apache Software License, Version 2.0
Java Native Access net.java.dev.jna:jna:5.13.0 LGPL-2.1-or-laterApache-2.0
JavaServer Pages(TM) Standard Tag Library API jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api:1.2.7 EPL 2.0GPL2 w/ CPE
javax.annotation API javax.annotation:javax.annotation-api:1.3.2 CDDL + GPLv2 with classpath exception
javax.inject javax.inject:javax.inject:1 The Apache Software License, Version 2.0
jaxen jaxen:jaxen:2.0.0 BSD License 2.0
jbcrypt org.connectbot.jbcrypt:jbcrypt:1.0.0 ISC
jCIFS org.samba.jcifs:jcifs:1.3.18-kohsuke-1 GNU Lesser General Public License, version 2.1
JCL 1.2 implemented over SLF4J org.slf4j:jcl-over-slf4j:2.0.9 Apache License, Version 2.0
JCommon org.jfree:jcommon:1.0.23 GNU Lesser General Public Licence
Jenkins cli org.jenkins-ci.main:cli:2.426.2 The MIT license
Jenkins core org.jenkins-ci.main:jenkins-core:2.426.2 The MIT license
Jenkins remoting layer org.jenkins-ci.main:remoting:3160.vd76b_9ddd10cc The MIT licenseApache License 2.0
Jenkins Stapler Support Library io.jenkins.stapler:jenkins-stapler-support:1.1 MIT License
Jenkins Task Reactor org.jenkins-ci:task-reactor:1.8 MIT License
Jenkins war org.jenkins-ci.main:jenkins-war:2.426.2 The MIT license
Jetty 10 implementation for WebSocket org.jenkins-ci.main:websocket-jetty10:2.426.2 The MIT license
JFreeChart org.jfree:jfreechart:1.0.19 GNU Lesser General Public Licence
JLine jline:jline:2.14.6 The BSD License
json-lib org.kohsuke.stapler:json-lib:2.4-jenkins-3 The Apache Software License, Version 2.0
JZlib com.jcraft:jzlib:1.1.3-kohsuke-1 BSD
Localizer org.jvnet.localizer:localizer:1.31 The MIT license
Log4j Implemented Over SLF4J org.slf4j:log4j-over-slf4j:2.0.9 Apache Software Licenses
Memory Monitor org.jenkins-ci:memory-monitor:1.12 MIT
MXP1: Xml Pull Parser 3rd Edition (XPP3) xpp3:xpp3:1.1.4c Indiana University Extreme! Lab Software License, vesion 1.1.1Public DomainApache Software License, version 1.1
MXParser io.github.x-stream:mxparser:1.2.2 Indiana University Extreme! Lab Software License
Pure Java - COM bridge org.kohsuke.jinterop:j-interop:2.0.8-kohsuke-1 LGPL v3
Pure Java - COM bridge org.kohsuke.jinterop:j-interopdeps:2.0.8-kohsuke-1 LGPL v3
relaxngDatatype relaxngDatatype:relaxngDatatype:20020414 BSD License
Robust HTTP client library org.jvnet.robust-http-client:robust-http-client:1.2 MIT license
SezPoz Library net.java.sezpoz:sezpoz:1.13 CDDL
SLF4J API Module org.slf4j:slf4j-api:2.0.9 MIT License
SLF4J JDK14 Provider org.slf4j:slf4j-jdk14:2.0.9 MIT License
SpotBugs Annotations com.github.spotbugs:spotbugs-annotations:4.7.3 GNU LESSER GENERAL PUBLIC LICENSE, Version 2.1
Spring AOP org.springframework:spring-aop:5.3.29 Apache License, Version 2.0
Spring Beans org.springframework:spring-beans:5.3.29 Apache License, Version 2.0
Spring Context org.springframework:spring-context:5.3.29 Apache License, Version 2.0
Spring Core org.springframework:spring-core:5.3.29 Apache License, Version 2.0
Spring Expression Language (SpEL) org.springframework:spring-expression:5.3.29 Apache License, Version 2.0
Spring Web org.springframework:spring-web:5.3.29 Apache License, Version 2.0
spring-security-core org.springframework.security:spring-security-core:5.8.7 Apache License, Version 2.0
spring-security-crypto org.springframework.security:spring-security-crypto:5.8.7 Apache License, Version 2.0
spring-security-web org.springframework.security:spring-security-web:5.8.7 Apache License, Version 2.0
Stapler org.kohsuke.stapler:stapler:1814.vdc9dd5217ee2 2-clause BSD license
Stapler Groovy module org.kohsuke.stapler:stapler-groovy:1814.vdc9dd5217ee2 2-clause BSD license
Stapler Jelly module org.kohsuke.stapler:stapler-jelly:1814.vdc9dd5217ee2 2-clause BSD license
Symbol annotation org.jenkins-ci:symbol-annotation:1.24 MIT License
Timeline component at http://www.simile-widgets.org/timeline/ org.kohsuke.stapler:stapler-adjunct-timeline:1.5 BSD License
TXW2 Runtime com.sun.xml.txw2:txw2:20110809 CDDL v1.1 / GPL v2 dual license
Type arithmetic library for Java5 org.jvnet:tiger-types:2.2 CDDL/GPLv2 dual license
Utility around Java Crypto API org.jenkins-ci:crypto-util:1.9 MIT License
Version Number Library org.jenkins-ci:version-number:1.11 MIT License
windows-package-checker org.kohsuke:windows-package-checker:1.2 MIT license
winp org.jvnet.winp:winp:1.30 MIT License
Winstone org.jenkins-ci:winstone:6.16 GNU Lesser General Public License version 2.1COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
XStream Core com.thoughtworks.xstream:xstream:1.4.20 BSD-3-Clause

求助:获取git commit message

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

很喜欢你的文章!!

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

自定义消息 无法展示图片

[飞书插件]发送的消息详情: {"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

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

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

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

再次感谢。

image
image
image

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.