com.offbytwo.jenkins.model.Build Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jenkins-client Show documentation
Show all versions of jenkins-client Show documentation
A Jenkins API client for Java
/*
* Copyright (c) 2013 Rising Oak LLC.
*
* Distributed under the MIT license: http://opensource.org/licenses/MIT
*/
package com.offbytwo.jenkins.model;
import java.io.IOException;
public class Build extends BaseModel {
int number;
String url;
public Build() {}
public Build(Build from) {
this(from.getNumber(), from.getUrl());
}
public Build(int number, String url) {
this.number = number;
this.url = url;
}
public int getNumber() {
return number;
}
public String getUrl() {
return url;
}
public BuildWithDetails details() throws IOException {
return client.get(url, BuildWithDetails.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy