Skip to content

verticle-io/jx-java-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jenkins X Java Client

This library implements a Java client for working with Jenkins X for use in things like:

  • Jenkins plugins such as jx-resources
  • IDE plugins such as for IDEA or eclipse
  • other Java tools that want to integrate closely with Jenkins X
Jenkins X icon

Using the PipelineClient

You can create and use a client like this:

PipelineClient client = PipelineClient.newInstance();

// load and start watching pipelnes
client.start();

List<PipelineActivity> pipelines = client.getPipelines();

// stop watching
client.close();

You can also listen to PipelineActivity resources being added/updated/deleted via a listener...

Watcher<PipelineActivity> listener = new Watcher<PipelineActivity>() {
    @Override
    public void eventReceived(Action action, PipelineActivity pipelineActivity) {
        // on add/modify/delete of a pipeline
    }

    @Override
    public void onClose(KubernetesClientException e) {       
    }
};
client.addListener(listener);

About

A pure Java client for working with Jenkins X

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 99.0%
  • Shell 1.0%