Jenkins 管道代码 - 在发布步骤中发布一个 jsonEvent

时间:2021-05-28 13:44:58

标签: jenkins-pipeline jenkins-plugins jenkins-groovy

发布工件后,我需要从我的管道代码发布一个 json 事件。 我提到了CloudBees documentation

我尝试了 wfs.publishEvent(wfs.jonEvent('{"event" : "helloworld"}')),但它在使用我的共享库的 jenkins 作业中抛出错误。 错误如下:
groovy.lang.MissingMethodException: No signature of method: PublishImpl.jsonEvent() is applicable for argument types: (java.lang.String) values: [{"event":"helloworld"}]

wfs 掌握当前管道步骤(发布)。

我希望 jsonevent 方法在 Notification API 中可用。 需要完成任何其他配置才能发布 jsonevent。
谢谢。

0 个答案:

没有答案
相关问题