目录

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);
关于
429.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号