我目前正在实施一个小程序,的将输出的结果的wso2 carbon-analytics component jenkins build使用jenkins-rest库如下,
public class Demo {
public static void main(String[] args) {
JenkinsClient client = JenkinsClient.builder()
.endPoint("https://wso2.org/jenkins/")
.build();
SystemInfo systemInfo = client.api().systemApi().systemInfo();
System.out.println(client.api().jobsApi().jobInfo("view/platform/job/platform-builds", "carbon-apimgt_6.x")
}
}
我的依赖项详细信息如下,
<dependencies>
<dependency>
<groupId>com.cdancy</groupId>
<artifactId>jenkins-rest</artifactId>
<version>0.0.12</version>
</dependency>
</dependencies>
运行以上命令时,我总是得到java.lang.NullPointerException
。请您指导我做错了什么。请在jenkins-rest-api