Giter Club home page Giter Club logo

dingtalk-plugin's Introduction

dingtalk-plugin's People

Contributors

bobdu avatar chnyangjie avatar dependabot[bot] avatar liuweigl avatar magicianx avatar nguyendream avatar yangxylab avatar zhujunling-nj avatar ztbsuper 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  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  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

dingtalk-plugin's Issues

能否不同任务有不同的通知时机

原先的是每个Job可以设置自己的通知时机。现在新版的将触发时机统一到系统配置中,所有Job的时机都是一样的。也就是设置通知时机有构建启动时触发,那么所有Job都是启动时通知,无法设置某些Job启动时通知就行了。能否有和旧版一样可以单独设通知时机?
通知时机

项目构建不发消息提示

Jenkins:2.235.1
DingTalk:2.3.1
项目配置:钉钉配置、gitlab 拉取代码,调用 shell 构建;完成。
问题:构建完成后,没有钉钉消息提示。系统配置有正确配置钉钉机器人信息,能收到测试消息。

请问大佬,2.0版本的怎么在Pipeline里面的post内进行调用发送自定义信息呢

1.9版本可以这样调用
post { success { dingTalk accessToken:'你的钉钉webhook,完整的webhook即可', imageUrl:'图片地址', jenkinsUrl:'jenkins地址/', message:'成功时,想要发送的消息', notifyPeople:'' } failure { dingTalk accessToken:'你的钉钉webhook,完整的webhook即可', imageUrl:'图片地址', jenkinsUrl:'jenkins地址/', message:'失败时想要发送的消息', notifyPeople:'' } }

但是2.0版本后这样调用就出错了

jenkins pipeline script使用钉钉通知不生效

环境
jenkins 2.230
钉钉插件:2.2.0

问题
pipeline script使用钉钉通知不生效,钉钉没消息。pipeline部分配置如下:

    stage ("build") {
        container("golang") {
            sh """
                git config --global url."https://oauth2:[email protected]".insteadOf "https://git.test.com"
                export GOPROXY=https://goproxy.io,direct
                export GOPRIVATE=git.test.com
                export GOPATH=/home/jenkins
                CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o main main.go
            """
        }
    }

   stage('link'){
        steps {
            echo 'go build失败了,请检查!'
        }
        post {
            failure {
                dingtalk (
                    robot: '6cc574c3-17fa-4e0c-8724-f7de3376e1b6',
                    type: 'LINK',
                    text: [
                        'go build失败了,请检查!'
                    ]
                )
            }
        }
    }

网上资料说钉钉通知不支持pipeline script。暂时无解,能指点下是哪里的问题吗,谢谢。

升级到2.0.0后默认视图无法修改

在Manage System--Configure System中可以设置默认视图,升级插件到2.0.0后,默认视图变成下拉选项中的第一个,手动修改选其他视图保存设置后,保存成功后,默认视图仍是下拉选项第一个。例如,下拉选项中有DEV,all两个,默认选中了DEV,改成all保存后又变回DEV。其他设置不变,把插件降回1.9,没有这个问题。
Jenkins版本是Jenkins ver. 2.204.2

Jenkins2.226 无法选择配置钉钉通知器

异常情况 无法进行钉钉通知器配置(显示异常),”构建后操作“ 中无“钉钉通知器配置”选项

如图

image

Jenkins 版本: 2.226
DingTalk 插件版本: 2.0.1

pipeline发送消息报错

Describe the bug
A clear and concise description of what the bug is.

Screenshots
If applicable, add screenshots to help explain your problem.
pipeline:

  post {
    always {
      echo 'try'
      dingTalk(robot: '70e29cb1-bc39-496f-8624-d8c9b4de448f',atAll: false)
    }
  }

configre system :
image

error:

[Pipeline] dingtalk
Error when executing always post condition:
java.lang.NullPointerException
	at io.jenkins.plugins.service.impl.DingTalkServiceImpl.send(DingTalkServiceImpl.java:47)
	at io.jenkins.plugins.DingTalkPipeline.perform(DingTalkPipeline.java:205)
	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

Jenkins Info(please complete the following information):

  • Version [e.g. 22]
    Jenkins v2.204.1
    DingTalk Plugin Info(please complete the following information):
  • Version [e.g. 22]
    v2.20
    Additional context
    Add any other context about the problem here.

构建通知Title提供分支信息

原版LINK通知信息默认提供分支信息:
IMG_2C31086E352C-1
新版LINK通知信息,默认不提供且无法使用环境变量设值如$BRANCH_NAME:
IMG_77C97FB51A43-1

建议默认Title中添加当前构建分支信息以便更好的消息辨识度。

NullPointerException occurred when the maven project started/completed.

Describe the bug
NullPointerException occurred when the maven project started/completed.

Screenshots
Here is the log:

java.lang.NullPointerException
	at io.jenkins.plugins.DingTalkRunListener.onStarted(DingTalkRunListener.java:151)
	at hudson.model.listeners.RunListener.fireStarted(RunListener.java:238)
	at hudson.maven.MavenBuild$ProxyImpl2.start(MavenBuild.java:614)
	at sun.reflect.GeneratedMethodAccessor209.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at hudson.model.Executor$2.call(Executor.java:932)
	at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23)
	at com.sun.proxy.$Proxy87.start(Unknown Source)
	at sun.reflect.GeneratedMethodAccessor209.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:931)
	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:905)
	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:857)
	at hudson.remoting.UserRequest.perform(UserRequest.java:211)
	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
	at hudson.remoting.Request$2.run(Request.java:369)
	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
	at org.jenkinsci.remoting.CallableDecorator.call(CallableDecorator.java:18)
	at hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21)
	at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
	at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
RunListener failed
java.lang.NullPointerException
	at io.jenkins.plugins.DingTalkRunListener.onCompleted(DingTalkRunListener.java:174)
	at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:209)
	at hudson.model.Run.execute(Run.java:1925)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:428)

Jenkins Info(please complete the following information):

  • Version [2.237]

DingTalk Plugin Info(please complete the following information):

  • Version [2.3.0]

Additional context
There's no problem when clicking the test action button.

Jenkins 2.235.1 + DingTalk 2.3.2 java.lang.NullPointerException

只要触发钉钉就会在日志里发现这个警告,怀疑是Jenkins新版本的信息通知和之前不一样了,以前是在POST这一步选择,现在是选择机器人。

01-Sep-2020 09:27:31.530 警告 [Computer.threadPoolForRemoting [#11] for Channel to Maven [/usr/local/jdk6/bin/java, -cp, /root/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven35-agent-1.13.jar:/usr/local/apache-maven/boot/plexus-classworlds-2.6.0.jar:/usr/local/apache-maven/conf/logging, jenkins.maven3.agent.Maven35Main, /usr/local/apache-maven, /usr/local/tomcat1/webapps/jenkins/WEB-INF/lib/remoting-4.3.jar, /root/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven35-interceptor-1.13.jar, /root/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.13.jar, 23511] id=350] hudson.model.listeners.RunListener.report RunListener failed
java.lang.NullPointerException
at io.jenkins.plugins.DingTalkRunListener.send(DingTalkRunListener.java:99)
at io.jenkins.plugins.DingTalkRunListener.onCompleted(DingTalkRunListener.java:235)
at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:209)
at hudson.maven.MavenBuild$ProxyImpl2.end(MavenBuild.java:636)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at hudson.model.Executor$2.call(Executor.java:932)
at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23)
at com.sun.proxy.$Proxy125.end(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:931)
at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:905)
at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:857)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:369)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at org.jenkinsci.remoting.CallableDecorator.call(CallableDecorator.java:18)
at hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21)
at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

自定义消息和执行人在一起了

如题,如图:
图片
项目配置如下:
图片
建议,把“自定义消息”内容,放到“执行人”下一列。这样可以很清晰的看到项目构建人,想对钉钉被艾特的人说些什么,不易误解。

执行发送时候报错

根据文档配置之后,报错如下:

+ echo 你好
你好
ERROR: Build step failed with exception
java.lang.NullPointerException
	at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
	at io.jenkins.plugins.service.impl.DingTalkServiceImpl.getSender(DingTalkServiceImpl.java:25)
	at io.jenkins.plugins.service.impl.DingTalkServiceImpl.send(DingTalkServiceImpl.java:43)
	at io.jenkins.plugins.DingTalkPipeline.perform(DingTalkPipeline.java:176)
	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
	at hudson.model.Build$BuildExecution.build(Build.java:206)
	at hudson.model.Build$BuildExecution.doRun(Build.java:163)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
	at hudson.model.Run.execute(Run.java:1880)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:428)
Build step 'DingTalk' marked build as failure
Finished: FAILURE

这个是我无法配置的问题吗?版本是2.1.0 Jenkins 版本是官网下载的最新的war包..

配置信息如下:

image

image

控制台输出结果

image

是否可以@代码提交人呢

您好,当前我理解的@的人是执行这个pipeline的人,我们现在都是根据开发人员提交后触发webhook而触发执行,因此这个插件能否通过git提交信息,让我们可以配置@相关commit提交人员呢

使用Jcasc配置dingding-notifications的robot时,ID的值类型转换错误

上下文
当我使用jenkins configuration as code插件来配置dingding-notifications插件时,

dingTalkGlobalConfig:
  verbose: true
  noticeOccasions:
  - "SUCCESS"
  - "START"
  - "NOT_BUILT"
  - "ABORTED"
  - "FAILURE"
  - "UNSTABLE"
  robotConfigs:
  - id: 123 # 就是它经过Jcasc解析传给dingding-notifications插件时,类型不匹配
    name: "钉钉告警通知"
    webhook: "**********"
    securityPolicyConfigs:
    - checked: false
      desc: "ip 地址/段"
      type: "IP"
      value: ""
    - checked: true
      desc: "关键字"
      type: "KEY"
      value: "Jenkins"
    - checked: false
      desc: "加密"
      type: "SECRET"
      value: ""

报错

2020-06-20 16:44:21.344+0000 [id=29] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed ConfigurationAsCode.init
java.lang.IllegalArgumentException: argument type mismatch
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
 at io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator.tryConstructor(DataBoundConfigurator.java:174)
Caused: io.jenkins.plugins.casc.ConfiguratorException: : Failed to construct instance of class io.jenkins.plugins.DingTalkRobotConfig.
 Constructor: public io.jenkins.plugins.DingTalkRobotConfig(java.lang.String,java.lang.String,java.lang.String,java.util.concurrent.CopyOnWriteArrayList).
 # 请看此处
 Arguments: [java.lang.String, java.lang.String, java.lang.String, java.util.ArrayList].
 Expected Parameters: id java.lang.String, name java.lang.String, webhook java.lang.String, securityPolicyConfigs java.util.concurrent.CopyOnWriteArrayList<io.jenkins.plugins.DingTalkSecurityPolicyConfig>

救助
我在Jcasc配置文件中配置dingding-notifications插件时,robot的ID我该怎么写?

如何在通知内容中插入构建变更信息

我希望在通知中附加一些消息内容,比如:
当出发构建时,通知中包含: 变更:{修复登录bug}触发了自动构建,预计2分钟后重启服务
当构建完成时:{修复登录bug}已经完成,服务可用

freestyle 项目无法正确@执行人

Describe the bug
无法正确@执行人,怀疑是没把 执行人 的手机号添加到钉钉消息的 atMobiles 字段。

在项目配置 通知人 里面填上的手机号是可以正确@到的,但这个不符合需求

Screenshots
jenkins配置
用户信息
日志
钉钉

Jenkins Info(please complete the following information):

  • 2.222.4

DingTalk Plugin Info(please complete the following information):

  • 2.3.0

Additional context

typo in "Send notification when the build is start"

Describe the bug
In Jenkins Global Configuration it should be "Send notification when the build is started"

Screenshots
image

Jenkins Info(please complete the following information):

  • Version 2.222.4

DingTalk Plugin Info(please complete the following information):

  • Version 2.3.0

Additional context
None.

钉钉机器人连接超时

Describe the bug
钉钉机器人连接超时

Screenshots
image

Jenkins Info(please complete the following information):

  • Version [2.248]

DingTalk Plugin Info(please complete the following information):

  • Version [2.3.1]

Additional context
ERROR: 钉钉机器人发生错误:java.net.SocketTimeoutException: Read timed out

声明式pipeline中引用报错,没有jsonFilepath

WorkflowScript: 174: Missing required parameter: "jsonFilePath" @ line 174, column 9.
18:57:58 dingding accessToken: '${env.OpsInotifycation-dingding}'
18:57:58 ^
18:57:58
18:57:58 WorkflowScript: 180: Missing required parameter: "jsonFilePath" @ line 180, column 9.
18:57:58 dingding accessToken: '${env.OpsInotifycation-dingding}'
18:57:58 ^
18:57:58
18:57:58 WorkflowScript: 186: Missing required parameter: "jsonFilePath" @ line 186, column 9.
18:57:58 dingding accessToken: '${env.OpsInotifycation-dingding}'
18:57:58 ^
18:57:58
18:57:58 3 errors
18:57:58
18:57:58 at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)
18:57:58 at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1085)
18:57:58 at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
18:57:58 at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
18:57:58 at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
18:57:58 at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
18:57:58 at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
18:57:58 at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
18:57:58 at groovy.lang.GroovyShell.parse(GroovyShell.java:700)
18:57:58 at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:142)
18:57:58 at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:127)
18:57:58 at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:561)
18:57:58 at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:522)
18:57:58 at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:331)
18:57:58 at hudson.model.ResourceController.execute(ResourceController.java:97)
18:57:58 at hudson.model.Executor.run(Executor.java:429)
18:57:58 Finished: FAILURE

post字段中如下
dingding accessToken: '${env.OpsInotifycation-dingding}', imageUrl: '', message: 'Jenkins构建通知', notifyPeople: 'Abner'
之前是dingTalk不知道为什么新版本里变成了dingding

pipeline中的变量值怎么在markdown中调用

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

测试的时候提示错误:only group admin can @ All

Describe the bug
测试的时候提示错误:only group admin can @ All

Screenshots
If applicable, add screenshots to help explain your problem.
image

Jenkins Info(please complete the following information):

  • Version 2.235.1

DingTalk Plugin Info(please complete the following information):

  • Version 2.3.1

Additional context
测试的时候提示错误:only group admin can @ All

jenkins 构建后操作没有钉钉选项

安装好插件后,配置好机器人,但是在项目设置中的构建后操作栏中没有dingtalk选项,在系统设置机器人的时候测试推送是没问题的,有重启jenkins
jenkins版本2.222
dingtalk 2.3.0

无法发送钉钉通知

配置完全局url,也能测试发送。
但是在任务里选中配置的机器人,然后构建时发送不了通知。报错如下
01-Apr-2020 11:42:18.653 WARNING [Executor #-1 for master : executing test2 #2] hudson.model.listeners.RunListener.report RunListener failed
java.lang.NullPointerException
at io.jenkins.plugins.DingTalkRunListener.onStarted(DingTalkRunListener.java:93)
at hudson.model.listeners.RunListener.fireStarted(RunListener.java:238)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:291)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:427)

Port problems

Describe the bug
The port number of the link is inconsistent in the Mac version of the DingDing bot notification message.
Because we changed the Jenkins default port number to something else, not 5000.
But only link 1 will open correctly. The other three links open with the same port number of 5000.

Screenshots
image

Jenkins Info(please complete the following information):

  • Version [2.235.5]

DingTalk Plugin Info(please complete the following information):

  • Version [2.3.2]

Additional context
The ios version of DingDing does the same thing, so I'm guessing it's an issue with that plugin?

> 2020-06-02 02:44:34.447+0000 [id=63] WARNING h.model.listeners.RunListener#report: RunListener failed

2020-06-02 02:44:34.447+0000 [id=63] WARNING h.model.listeners.RunListener#report: RunListener failed
java.lang.ClassNotFoundException: hudson.plugins.promoted_builds.JobPropertyImpl
at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1383)
at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1336)
at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1083)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Caused: java.lang.NoClassDefFoundError: hudson/plugins/promoted_builds/JobPropertyImpl
at org.jenkinsci.plugins.firplugin.FirRunListener.onCompleted(FirRunListener.java:22)
at org.jenkinsci.plugins.firplugin.FirRunListener.onCompleted(FirRunListener.java:18)
at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:209)
at hudson.model.Run.execute(Run.java:1898)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:427)


插件安装不正确,重新安装试试。

Originally posted by @liuweiGL in #49 (comment)

钉钉在方法内通知无效 LINK模式不支持@功能

Describe the bug
1.钉钉通知提炼到方法中在jenkis项目取消的时候 触发提醒 钉钉通知没执行
2. LINK模式不支持@功能 这个功能很需要 在构建失败或取消的时候已获取构建人手机号情况需要自定义@构建人 不使用钉钉插件的默认通知

Jenkins Info(please complete the following information):
Jenkins 2.243

DingTalk Plugin Info(please complete the following information):
2.3.1

Additional context
if ("${IS_ROLL_DEPLOY}" == 'true') {
dingNotice("CI/CD滚动部署被取消 ❌")
}

// 钉钉通知
def dingNotice(content = '') {
dingtalk(
robot: "${DING_TALK_ROBOT}",
type: 'LINK',
title: "${JOB_NAME}#${BUILD_NUMBER}项目${content}",
text: ['点击查看更多详情'],
messageUrl: "${env.BUILD_URL}",
picUrl: ''
)
}

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.