Examples of forEnvironment()


Examples of hudson.model.EnvironmentSpecific.forEnvironment()

            NodeSpecific n = (NodeSpecific) t;
            t = (ToolInstallation)n.forNode(node,new StreamTaskListener(stderr));
        }
        if (t instanceof EnvironmentSpecific) {
            EnvironmentSpecific e = (EnvironmentSpecific) t;
            t = (ToolInstallation)e.forEnvironment(EnvVars.getRemote(channel));
        }
        stdout.println(t.getHome());
        return 0;
    }
View Full Code Here

Examples of hudson.tasks.Maven.MavenInstallation.forEnvironment()

        MavenInstallation mvn = project.getMaven();
        if (mvn == null)
            throw new AbortException(Messages.MavenModuleSetBuild_NoMavenConfigured());

       
        mvn = mvn.forEnvironment(envs);
       
        Computer computer = Computer.currentComputer();
        if (computer != null) { // just in case were not in a build
            Node node = computer.getNode();
            if (node != null) {
View Full Code Here

Examples of hudson.tasks.Maven.MavenInstallation.forEnvironment()

                EnvVars envVars = getEnvironment(listener);
                MavenInstallation mvn = project.getMaven();
                if(mvn==null)
                    throw new AbortException(Messages.MavenModuleSetBuild_NoMavenConfigured());

                mvn = mvn.forEnvironment(envVars).forNode(Computer.currentComputer().getNode(), listener);
               
                MavenInformation mavenInformation = getModuleRoot().act( new MavenVersionCallable( mvn.getHome() ));
               
                String mavenVersion = mavenInformation.getVersion();
               
View Full Code Here

Examples of hudson.tasks.Maven.MavenInstallation.forEnvironment()

            EnvVars envVars = getEnvironment(listener); // buildEnvironments should be set up first
           
            MavenInstallation mvn = getProject().getParent().getMaven();
           
            mvn = mvn.forEnvironment(envVars).forNode(Computer.currentComputer().getNode(), listener);
           
            MavenInformation mavenInformation = getModuleRoot().act( new MavenVersionCallable( mvn.getHome() ));
           
            String mavenVersion = mavenInformation.getVersion();
View Full Code Here

Examples of hudson.tasks.Maven.MavenInstallation.forEnvironment()

        // This can happen if maven calls ANT which itself calls Maven
        // or if Maven calls itself e.g. maven-release-plugin
        MavenInstallation mvn = project.getParent().getMaven();
        if (mvn == null)
            throw new hudson.AbortException(Messages.MavenModuleSetBuild_NoMavenConfigured());
        mvn = mvn.forEnvironment(envs).forNode(Computer.currentComputer().getNode(), log);
        mvn.buildEnvVars(envs);
        return envs;
    }

    public void registerAsProjectAction(MavenReporter reporter) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.