kubesphere / ks-devops

This is a cloud-native application that focuses on the DevOps area.
https://kubesphere.io/devops/
Apache License 2.0
157 stars 89 forks source link

Event-driven: Support for CloudEvents specification Jenkins event data reception #431

Open mzmuer opened 2 years ago

mzmuer commented 2 years ago

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.

LinuxSuRen commented 2 years ago

Please consider the following cases:

JohnNiang commented 2 years ago

@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.

LinuxSuRen commented 2 years ago

IMO, We don't need to use Go SDK for CloudEvents if we want to create a new Jenkins plugin.

JohnNiang commented 2 years ago

@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?

mzmuer commented 2 years ago

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:

JohnNiang commented 2 years ago

/assign @mzmuer