发布工件后,我需要从我的管道代码发布一个 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。
谢谢。