The CDEvents Plugin for Jenkins allows interoperability between different CI/CD tools by adopting core CDF project specification for events called CDEvents based off the industry-standard CloudEvents.
By using this plugin in your workflows, you can emit and consume CDEvents for various events in Jenkins relating to Jenkins objects (jobs, projects, queues, stages etc). It will also provide a series of sinks that end users can configure such as Http, Kinesis, SQS etc.
The standardization of events by adopting CDEvents will make it easier to interoperate systems without having to write adapters.
-
In root of the project run the command "mvn compile hpi:run" in your terminal.
-
Open your browser and navigate to http://localhost:8080/jenkins.
-
Go to "Manage Jenkins".
-
Click on "Plugins".
-
Click on "Advanced Settings".
-
Set the field 'Server' to the appropriate proxy. Ex. "http.proxy.myproxy.com".
-
Select the 'Advanced' drop down setting in the 'HTTP Proxy Configuration' section.
-
Set the field 'Test URL' to "http://www.google.com".
-
Select 'Validate Proxy'.
-
Select 'Submit'.
-
In the left hand selection pane select 'Available plugins'.
-
Wait for your console to display that a connection has been made. It should display a message stating something like "Performed the action check updates server successfully at the attempt #1". You may have to wait and refresh your browser page multiple times.
-
Return to the 'Available plugins' page and look for "pipeline" in the search bar.
-
Check the 'install' box for the first returned response. The descriptions should say something like "A suite of plugins that lets you orchestrate automation, simple or complex..."
-
Select 'Download now and install after restart'.
-
Wait for the download to complete. All steps should report 'Downloaded Successfully'.
-
In your terminal restart your instance (ctrl+C).
-
Rerun the command "mvn compile hpi:run".
-
Return to Jenkins in your browser and select 'Dashboard' in the path listed at the top pane of the Jenkins window.
-
In the left hand selection pane select 'New Item'.
-
Give the item a name. Ex. "myFirstPipeline".
-
Select the 'Pipeline' option below- the search box.
-
Scroll to the bottom of the page so that you are in the Pipeline section of the page.
-
In the dropdown option on the right hand side of the 'Script' pane under 'Pipeline' select 'Hello World'.
-
Select 'Save'.
-
Select 'Dashboard' in the path listed at the top pane of the Jenkins window.
-
In the left hand pane of the window select 'Manage Jenkins'.
-
Select 'System'.
-
Look for the 'CD Events Plugin' section of the page and select 'Syslog'.
-
Select 'Save'.
-
In the left hand pane of the window select 'Build Now'.
Note
For more information on installing plugins, see Installing a plugin
Sink Type | Description | |
---|---|---|
Syslog | Use SysLog when testing the plugin. The CDEvents will be written to the System Logger to view the events being captured by the plugin. |
|
Kinesis | Use Kinesis to send the CDEvents to an AWS Kinesis Data Stream to capture, process, and store the CDEvents. |
|
HTTP | Use HTTP to send the CDEvents to an HTTPEndpoint. |
- For recent versions, see GitHub Releases
See CONTRIBUTING.md for the contribution guidelines.
- Plugin source and documentation - Apache 2.0