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

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

Closed
Geek3carl opened this issue Mar 23, 2020 · 1 comment · Fixed by #31
Closed

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

Geek3carl opened this issue Mar 23, 2020 · 1 comment · Fixed by #31

Comments

@Geek3carl
Copy link

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

@liuweiGL
Copy link
Contributor

liuweiGL commented Mar 24, 2020

新版本不支持脚本调用。
Duplicate of #22

liuweiGL added a commit that referenced this issue Mar 30, 2020
# FEATURE

1. 添加 pipeline 调用
2. 支持多种消息类型
3. 优化默认的展示效果
4. 扩展用户属性,添加 `手机号码` 字段
5. 支持自动 @ `执行人`
6. 添加详细文档

# FIXED

1. 修复 `执行人` 显示 SYSTEM 问题

Closed #30 #28 #25 #24 #22
@liuweiGL liuweiGL mentioned this issue Mar 30, 2020
liuweiGL added a commit that referenced this issue Mar 30, 2020
Features:

- 添加 pipeline 调用
- 支持多种消息类型
- 优化默认的展示效果
- 扩展用户属性,添加 `手机号码` 字段
- 支持自动 @ `执行人`
- 添加详细文档

Fixes:

- 修复 `执行人` 显示 SYSTEM 问题

Closed #30, Closed #28, Closed #25, Closed #24, Closed #22
liuweiGL added a commit that referenced this issue Mar 30, 2020
Features:

- 添加 pipeline 调用
- 支持多种消息类型
- 优化默认的展示效果
- 扩展用户属性,添加 `手机号码` 字段
- 支持自动 @ `执行人`
- 添加详细文档

Fixes:

- 修复 `执行人` 显示 SYSTEM 问题

Closed #30, Closed #28, Closed #25, Closed #24, Closed #22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants