Java Client for Jenkins SSE Gateway Plugin.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
README.md
build.gradle
gradle.properties
settings.gradle

README.md

Jenkins SSE Client

Java Client for Jenkins SSE Gateway Plugin.

Usage

Connect

Client client = new Client("http://your-jenkins-server", "user", "api-token or password");
client.connect("clientId");

Subscribe Job Events

client.subscribe("job", event -> {
    Map data = event.readData(Map.class);
    System.out.println(data);
    ...
});

See also Events and EventProps.

Subscribe Pipeline Events

client.subscribe("pipeline", event -> {
    Map data = event.readData(Map.class);
    System.out.println(data);
    ...
});

See also PipelineEventChannel.