Open mzmuer opened 2 years ago
Please consider the following cases:
@LinuxSuRen , I guess you misunderstand him. Go SDK for CloudEvents will be used for apiserver only.
BTW, I'd prefer to implement a Jenkins plugin for Pipeline event by ourself due to too many problems in https://github.com/jenkinsci/cloudevents-plugin.
IMO, We don't need to use Go SDK for CloudEvents if we want to create a new Jenkins plugin.
@mzmuer , could you please provide more detail on your design? For example, how to update PipelineRun to make it reconcile by controller? Or update labels or annotations?
If only sends simple and customized events, detailed event information is not distinguished. That only need is a Webhook API.
@JohnNiang It looks something like this:
event-sync=true or event-sync=Finish
/assign @mzmuer
About #65
I plan to use https://github.com/cloudevents/sdk-go to receive the event data sent by Jenkins-Plugin. Provide a rudimentary scheme to receive events first, and then refine it.
CRD
is changed by event type, which finally triggerReconcile
apiserver
is started, triggered to synchronize the unfinished PieplineRun. Compensates for unexpected loss of event data