X Tutup
The Wayback Machine - https://web.archive.org/web/20200916163143/https://github.com/jenkins-x/jx-java-client
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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

Packages

No packages published
You can’t perform that action at this time.
X Tutup