Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

必须设置用户手机号才行, 否则无法使用FreeStyle通知 #303

Open
padixa opened this issue Aug 2, 2024 · 1 comment
Open
Labels

Comments

@padixa
Copy link

padixa commented Aug 2, 2024

问题描述
如果在用户设置中不进行钉钉手机号设置的话, 使用FreeStyle任务不会触发成功, Jenkins日志显示:
java.lang.NullPointerException: Cannot invoke "io.jenkins.plugins.DingTalkUserProperty.getMobile()" because the return value of "hudson.model.User.getProperty(java.lang.Class)" is null

如果我们创建不需要@的任务就没法发送成功了, 必须@才行. 但是Pipline任务就没有这种限制. (FreeStyle任务并没有选择 "通知人", 也没在下面输入通知人, 和Job设置无关, 但即便没选择这些还是必须得在钉钉设置里输入手机号, 因为FreeStyle任务强依赖@)

环境信息

  • Jenkins 版本:2.452.2
  • dingtalk-plugin 版本:2.7.3

其他信息

xx1

xx2

xx3

@padixa padixa added the bug label Aug 2, 2024
@padixa
Copy link
Author

padixa commented Aug 2, 2024

我们需要不要@的普通通知, 和Pipline任务一样, 请不要进行这种硬性限制, 除非选择了"通知人"中的atAll或者在那里输入了.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant