Skip to content

mamh-java/jenkins-java-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jenkins-java-client

A jenkins API Client for Java

Introduction

Java implementation of the [Jenkins] REST API.

Usage

URI uri = new URI("http://localhost:8080/");
String username = "mage";
String password = "token";
server = new JenkinsServer(uri, username, password); 

List<Job> jobs = server.getJobs("view");//获取视图 view 下面的jobs

List<Job> jobs = server.getJobs(); //默认获取视图All下面的jobs