All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.offbytwo.jenkins.model.MavenBuild Maven / Gradle / Ivy

package com.offbytwo.jenkins.model;

import java.io.IOException;

public class MavenBuild extends Build {

    public MavenBuild() {
    }

    public MavenBuild(Build from) {
        this(from.getNumber(), from.getUrl());
    }

    public MavenBuild(int number, String url) {
        super(number, url);
    }

    public MavenModule getMavenModule() throws IOException {
        return client.get(this.getUrl() + "/mavenArtifacts/", MavenModule.class);
    }

    public TestReport getTestReport() throws IOException {
        return client.get(this.getUrl() + "/testReport/?depth=1", TestReport.class);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy