net.nemerosa.ontrack.extension.jenkins.JenkinsBuildProperty Maven / Gradle / Ivy
package net.nemerosa.ontrack.extension.jenkins;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* This property associates a build number with a Jenkins job.
*/
@EqualsAndHashCode(callSuper = false)
@Data
public class JenkinsBuildProperty extends JenkinsJobProperty {
private final int build;
public JenkinsBuildProperty(JenkinsConfiguration configuration, String job, int build) {
super(configuration, job);
this.build = build;
}
/**
* Derived property: the full URL to the Jenkins build.
*/
public String getUrl() {
return super.getUrl() + "/" + build;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy