Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1.02 KB

README.md

File metadata and controls

33 lines (26 loc) · 1.02 KB

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.