-
-
Notifications
You must be signed in to change notification settings - Fork 469
Closed
Labels
Milestone
Description
Forgive me if I have missed some config detail that this would resolve, I also did scan through current issues and am not finding anything about this (which is curious to me).
v0.3.7
public static void main(String[] args) {
JenkinsServer jks = new JenkinsServer("https://jenkins.mydomain.com", "username", "token");
// SAD PATH
try {
jks.getVersion();
} catch(Exception e) {
/* java.lang.NullPointerException
* at com.offbytwo.jenkins.JenkinsServer.getVersion(JenkinsServer.java:104)
*/
}
// HAPPY PATH
jks.isRunning();
jks.getVersion();
}