uk.co.codera.ci.tooling.jenkins.JenkinsCommandLineInterfaceInvoker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codera-ci-tooling-service-jenkins Show documentation
Show all versions of codera-ci-tooling-service-jenkins Show documentation
Provides integration with jenkins such as creating and deleting jobs automatically.
The newest version!
package uk.co.codera.ci.tooling.jenkins;
import java.util.Arrays;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import hudson.cli.CLI;
public class JenkinsCommandLineInterfaceInvoker {
private static final Logger logger = LoggerFactory.getLogger(JenkinsCommandLineInterfaceInvoker.class);
public JenkinsCommandLineInterfaceInvoker() {
super();
}
public void invoke(String[] arguments) {
logger.info("Invoking jenkins cli with arguments {}", Arrays.toString(arguments));
try {
CLI._main(arguments);
} catch (Exception e) {
throw new IllegalStateException(e);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy