package net.minecraftforge.gradle.common;

import org.gradle.api.Project;

public class JenkinsExtension {
    // TODO: ci.jenkins.minecraftforge.net can't be resolved
    private String server = "https://ci.jenkins.minecraftforge.net/";
    private String job;
    private String authName = "console_script";
    private String authPassword = "dc6d48ca20a474beeac280a9a16a926e";

    public JenkinsExtension(Project project) {
        job = System.getenv("JOB_NAME") == null ? project.getName() : System.getenv("JOB_NAME");
    }

    public String getServer() {
        return server;
    }

    public void setServer(String server) {
        this.server = server;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getAuthName() {
        return authName;
    }

    public void setAuthName(String authName) {
        this.authName = authName;
    }

    public String getAuthPassword() {
        return authPassword;
    }

    public void setAuthPassword(String authPassword) {
        this.authPassword = authPassword;
    }
}
