Package com.cloudbees.api

Examples of com.cloudbees.api.ConfigurationParametersResponse


    }

    protected List<ApplicationAlias> getAliases(BeesClient client, String appId) throws IOException {
        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);
View Full Code Here


        String appId = super.initAppId(appid, appConfig);

        // Overwrite appId if blue-green parameter is defined
        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) {
View Full Code Here

        String[] p = activeAliases.split(",");
        return Arrays.asList(p);
    }

    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) {
View Full Code Here

TOP

Related Classes of com.cloudbees.api.ConfigurationParametersResponse

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.