All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.co.codera.ci.tooling.jenkins.JenkinsCommandLineInterfaceInvoker Maven / Gradle / Ivy

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