Package hudson.matrix

Examples of hudson.matrix.MatrixConfiguration


            TreeStructureUtil.addValue(lastSaved, Calendar.getInstance(), "", true, false, "time");
            TreeStructureUtil.addValue(lastSaved, currentUser.getDisplayName(), "", "user", "display-name");
            TreeStructureUtil.addValue(lastSaved, currentUser.getFullName(), "", "user", "full-name");
            if (project instanceof MatrixConfiguration) {
                logger.log(Level.FINER, "Adding matrix combination data for {0}", project);
                MatrixConfiguration configuration = (MatrixConfiguration)project;
                TreeNodeMetadataValue[] path = TreeStructureUtil.createTreePath("", "matrix", "combination");
                TreeNodeMetadataValue matrixNode = path[0];
                TreeNodeMetadataValue combinationNode = path[1];
                Combination combination = configuration.getCombination();
                //ToString version of the combination in job-info.matrix.combination.value
                TreeStructureUtil.addValue(combinationNode, combination.toString(',', ':'), "", "value");
                //Each axis in job-info.matrix.combination.[name]=[value]
                for (Map.Entry<String, String> axis : combination.entrySet()) {
                    TreeStructureUtil.addValue(combinationNode, axis.getValue(), "", "axis", axis.getKey());
View Full Code Here


            return null;
        }

        // Fetch the item that actually contains the BuildWrapper config and downcast it
        BuildableItemWithBuildWrappers job;
        MatrixConfiguration matrixBuild = null;
        if (task instanceof MatrixConfiguration) {
            matrixBuild = (MatrixConfiguration) task;
            job = matrixBuild.getParent();
        } else {
            job = (BuildableItemWithBuildWrappers) task;
        }

        // If we aren't one of the wrappers for this build, we don't care
        AndroidEmulator androidWrapper = job.getBuildWrappersList().get(AndroidEmulator.class);
        if (androidWrapper == null) {
            return null;
        }

        if (matrixBuild != null) {
            // If this is a matrix sub-build, substitute in the build variables
            return androidWrapper.getConfigHash(node, matrixBuild.getCombination());
        }
        return androidWrapper.getConfigHash(node);
    }
View Full Code Here

            }
        }
       
        // Handle Matrix Axes
        if (project instanceof MatrixConfiguration) {
            MatrixConfiguration matrixConfiguration = (MatrixConfiguration) project;
            subst.putAll(matrixConfiguration.getCombination());
        }
        if (project instanceof MatrixProject) {
            MatrixProject matrixProject = (MatrixProject) project;
            for (Axis axis : matrixProject.getAxes()) {
                subst.put(axis.name, axis.size() >0 ? axis.value(0) : "");
View Full Code Here

TOP

Related Classes of hudson.matrix.MatrixConfiguration

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.