Skip to content

kiy0taka/jenkins-sse-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Java Client for Jenkins SSE Gateway Plugin.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages