Package com.nirima.jenkins.plugins.docker

Examples of com.nirima.jenkins.plugins.docker.DockerTemplate$DescriptorImpl


    }

    @Override
    public void execute(AbstractBuild<?, ?> build) throws DockerException {

        DockerTemplate template = getCloud(build).getTemplate(templateId);

        String containerId = template.provisionNew().getId();

        LOGGER.info("Starting container " + containerId);
        DockerClient client = getClient(build);
        client.container(containerId).start();
        getLaunchAction(build).started(client, containerId);
View Full Code Here


    public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException {

        for (Cloud c : Jenkins.getInstance().clouds) {
            if (c instanceof DockerCloud && ((DockerCloud) c).getTemplate(image) == null) {
                LOGGER.log(Level.INFO, "Adding new template « "+image+" » to cloud " + ((DockerCloud) c).name);
                DockerTemplate t = new DockerTemplate(image, labelString, remoteFs, remoteFsMapping,
                        credentialsId, idleTerminationMinutes,
                        jvmOptions, javaPath,
                        prefixStartSlaveCmd,
                        suffixStartSlaveCmd, instanceCapStr,
                        dnsString, dockerCommand,
View Full Code Here

TOP

Related Classes of com.nirima.jenkins.plugins.docker.DockerTemplate$DescriptorImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.