
org.kuali.maven.mojo.CliMojo Maven / Gradle / Ivy
package org.kuali.maven.mojo;
import org.apache.maven.plugin.MojoExecutionException;
/**
* Connect to a Jenkins server and execute a Jenkins CLI command
*
* @goal cli
* @requiresDependencyResolution test
*/
public class CliMojo extends AbstractCliMojo {
/**
* The command issued to Jenkins CLI eg "help", "version", "who-ami-i" etc
*
* @parameter expression="${jenkins.cmd}" default-value="help"
* @required
*/
private String cmd;
@Override
public void execute() throws MojoExecutionException {
helper.executeCliCommand(this);
}
public String getCmd() {
return cmd;
}
public void setCmd(String cmd) {
this.cmd = cmd;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy