jenkins - 从共享库触发 Jenkins 作业
问题描述
这就是我在共享库文件中的内容
build job: 'Job Name',
parameters:
[
string(name: 'ENVIRONMENT', value: 'sit'),
string(name: 'param1', value: 'value1' )
]
它失败并出现以下错误:
hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method: build.call() is applicable for argument types: (java.util.LinkedHashMap) values: [[job:**********, parameters:[@string(name=ENVIRONMENT,value=sit), ...]]]
Possible solutions: call(java.lang.Object, java.lang.Object, java.lang.Object), wait(), any(), wait(long), main([Ljava.lang.String;), any(groovy.lang.Closure)
这里有什么帮助吗?
解决方案
Ok. So I figured out the problem.
One of the shared file name was build.groovy which was causing conflicts with build pipeline step. Renamed the file and that fixed the issue.
推荐阅读
- javascript - 使用 REST API 的下拉列表未显示(在控制台日志中显示)
- python - PHP - 在远程 IP 地址上执行 python 脚本并获取结果
- z-notation - 使用 eclipse 的信用卡的 object-Z 规范
- php - 如何在不使用 php 注册 paypal 的情况下进行捐赠?
- javascript - 使用 Storybook/vue 时别名不起作用
- sql - SQL Rank 和 SUM
- ios - 在 Swift 5 中播放我的项目中的随机声音
- javascript - React 渲染预期表达式
- html - 无法在 Marketo 的模板中创建模块块
- bootstrap-4 - 引导导航栏宽徽标问题 - 防止换行