# jx-java-client
**Repository Path**: linuxsuren/jx-java-client
## Basic Information
- **Project Name**: jx-java-client
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2018-06-09
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Jenkins X Java Client
This library implements a Java client for working with [Jenkins X](https://jenkins-x.io/) for use in things like:
* Jenkins plugins such as [jx-resources](https://github.com/jenkinsci/jx-resources-plugin)
* IDE plugins such as for IDEA or eclipse
* other Java tools that want to integrate closely with Jenkins X
## Using the PipelineClient
You can create and use a client like this:
```java
PipelineClient client = PipelineClient.newInstance();
// load and start watching pipelnes
client.start();
List pipelines = client.getPipelines();
// stop watching
client.close();
```
You can also listen to `PipelineActivity` resources being added/updated/deleted via a listener...
```java
Watcher listener = new Watcher() {
@Override
public void eventReceived(Action action, PipelineActivity pipelineActivity) {
// on add/modify/delete of a pipeline
}
@Override
public void onClose(KubernetesClientException e) {
}
};
client.addListener(listener);
```