jx-java-client

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

License

License

Categories

Categories

Java Languages Jenkins Build Tools Continuous Integration and Continuous Delivery CLI User Interface
GroupId

GroupId

io.jenkins-x.client
ArtifactId

ArtifactId

jx-java-client
Last Version

Last Version

1.0.4
Release Date

Release Date

Type

Type

jar
Description

Description

jx-java-client
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Project URL

Project URL

https://jenkins-x.io/
Project Organization

Project Organization

Jenkins X Community
Source Code Management

Source Code Management

http://github.com/jenkins-x/jx-java-client

Download jx-java-client

How to add to project

<!-- https://jarcasting.com/artifacts/io.jenkins-x.client/jx-java-client/ -->
<dependency>
    <groupId>io.jenkins-x.client</groupId>
    <artifactId>jx-java-client</artifactId>
    <version>1.0.4</version>
</dependency>
// https://jarcasting.com/artifacts/io.jenkins-x.client/jx-java-client/
implementation 'io.jenkins-x.client:jx-java-client:1.0.4'
// https://jarcasting.com/artifacts/io.jenkins-x.client/jx-java-client/
implementation ("io.jenkins-x.client:jx-java-client:1.0.4")
'io.jenkins-x.client:jx-java-client:jar:1.0.4'
<dependency org="io.jenkins-x.client" name="jx-java-client" rev="1.0.4">
  <artifact name="jx-java-client" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.jenkins-x.client', module='jx-java-client', version='1.0.4')
)
libraryDependencies += "io.jenkins-x.client" % "jx-java-client" % "1.0.4"
[io.jenkins-x.client/jx-java-client "1.0.4"]

Dependencies

compile (1)

Group / Artifact Type Version
io.fabric8 : kubernetes-client jar 3.1.12

test (2)

Group / Artifact Type Version
junit : junit jar 4.12
org.assertj : assertj-core jar 2.4.1

Project Modules

There are no modules declared in this project.

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);
io.jenkins-x.client

Jenkins X

CI/CD solution for modern cloud applications on Kubernetes

Versions

Version
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0