This is a Jenkins plugin that integrates with CloudEvents. It provides functionality to send events related to the run of a job and to build and send CloudEvents to a specified sink.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Clone the repository
- Navigate to the project directory
- Run
mvn clean install
to build the project mvn hpi:run
to run the plugin in Jenkins, you will have your instance running inlocalhost:8080/jenkins
or127.0.0.1:8080/jenkins
.
The plugin provides two main classes:
- CurrentStage.java: This class handles the job model's status updates and determines whether to send a build event based on the event type and result.
- HTTPSink.java: This class is responsible for building and sending CloudEvents to a specified sink.
- BuildModel.java: This class represents the build model.
- JobModel.java: This class represents the job model.
- SCMState.java: This class represents the SCM state.