Package com.cloudbees.api.config

Examples of com.cloudbees.api.config.ParameterMap


        List<ApplicationAlias> applicationAliasList = new ArrayList<ApplicationAlias>();
        try {
            ConfigurationParametersResponse res = client.configurationParameters(appId, "application");
            if (res.getConfiguration() != null) {
                ConfigParameters configParameters = ConfigParameters.parse(res.getConfiguration());
                ParameterMap parameterMap = configParameters.getParameters();

                String param = parameterMap.get("blue-green");
                if (param != null) {
                    ApplicationAlias bgApp = new ApplicationAlias(getAccount(), param);

                    // Get the current alias if any
                    ApplicationInfo applicationInfo = client.applicationInfo(appId);
View Full Code Here


        try {
            BeesClient client = getAppClient(appId);
            ConfigurationParametersResponse res = client.configurationParameters(appId, "application");
            if (res.getConfiguration() != null) {
                ConfigParameters configParameters = ConfigParameters.parse(res.getConfiguration());
                ParameterMap parameterMap = configParameters.getParameters();

                String param = parameterMap.get("blue-green");

                if (param != null) {
                    ApplicationAlias bgApp = new ApplicationAlias(getAccount(), param);

                    // Get the current alias if any
View Full Code Here

    public static BlueGreenSettings getInstance(BeesClient client, String account, String bgName) throws Exception {
        ConfigurationParametersResponse res = client.configurationParameters(account, "global");
        if (res.getConfiguration() != null) {
            ConfigParameters configParameters = ConfigParameters.parse(res.getConfiguration());
            ParameterMap parameterMap = configParameters.getParameters();

            String param = parameterMap.get(".bg.deploy." + bgName);

            if (param != null) {
                return new BlueGreenSettings(account, param);
            }
        }
View Full Code Here

TOP

Related Classes of com.cloudbees.api.config.ParameterMap

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.