issues
search
jenkinsci
/
cloudevents-plugin
Cloudevents Plugin for Jenkins
https://plugins.jenkins.io/cloudevents/
MIT License
18
stars
15
forks
source link
Initial setup of the CloudEvents Plugin
#2
Closed
ShrutiC-git
closed
3 years ago
ShrutiC-git
commented
3 years ago
Here's what has been done inside this PR:
Add Global-Configuration to this Plugin.
Users can enter and save configuration globally; config included sink URL and the corresponding event it will receive.
Implement RunListener to listen for runs of a job
This implementation will listen to status change of a run for a particular job and notify the sinks accordingly.
Construct payload to be sent to the sink and convert this Java object to JSON-string.
Wrap the payload inside CloudEvent's binary format and implement Message-Writers to write the CloudEvent to HTTP request.
Send request over to the configured Sink with CloudEvent-required headers.
[X] Make sure you are opening from a
topic/feature/bugfix branch
(right side) and not your main branch!
[X] Ensure that the pull request title represents the desired changelog entry
[X] Please describe what you did
[ ] Link to relevant issues in GitHub or Jira
[ ] Link to relevant pull requests, esp. upstream and downstream changes
[ ] Ensure you have provided tests - that demonstrates feature works or fixes the issue
Here's what has been done inside this PR: