
org.kuali.maven.mojo.CreateJobMojo Maven / Gradle / Ivy
package org.kuali.maven.mojo;
import org.apache.maven.plugin.MojoExecutionException;
/**
* Connect to a Jenkins server and create a Jenkins job
*
* @goal createjob
* @requiresDependencyResolution test
*/
public class CreateJobMojo extends AbstractJobConfigMojo {
/**
* The command issued to Jenkins CLI
*
* @parameter expression="${jenkins.cmd}" default-value="create-job"
* @required
*/
private String cmd;
/**
* The type of job to create
*
* @parameter expression="${jenkins.type}" default-value="publish"
* @required
*/
private String type;
@Override
public void execute() throws MojoExecutionException {
helper.pushJobToJenkins(this, type);
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getCmd() {
return cmd;
}
public void setCmd(String cmd) {
this.cmd = cmd;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy