public class ElectricFlowClient extends Object
Constructor and Description |
---|
ElectricFlowClient(String url,
String secret,
String apiVersion,
boolean ignoreSslConnectionErrors) |
ElectricFlowClient(String url,
String name,
String password,
String apiVersion,
boolean ignoreSslConnectionErrors) |
Modifier and Type | Method and Description |
---|---|
net.sf.json.JSONObject |
attachCIBuildDetails(CIBuildDetail details) |
String |
deployApplicationPackage(String group,
String key,
String version,
String file) |
List<String> |
getApplications(String projectName) |
List<String> |
getArtifactRepositories() |
GetJobStatusResponseData |
getCdJobStatus(String cdJobId) |
GetPipelineRuntimeDetailsResponseData |
getCdPipelineRuntimeDetails(String flowRuntimeId) |
String |
getElectricFlowUrl() |
List<String> |
getEnvironments(String projectName) |
List<String> |
getFormalParameters(String projectName,
String applicationName,
String applicationProcessName) |
List<String> |
getPipelineFormalParameters(String pipelineId) |
List<String> |
getPipelineFormalParameters(String projectName,
String pipelineName) |
String |
getPipelineId(String projectName,
String pipelineName) |
String |
getPipelines(String projectName) |
List<StageResponseData> |
getPipelineStages(String projectName,
String pipelineName) |
List<String> |
getPipelineStagesNames(String projectName,
String pipelineName) |
List<String> |
getProcedureFormalParameters(String projectName,
String procedureName) |
List<String> |
getProcedures(String projectName) |
net.sf.json.JSONObject |
getProcess(String projectName,
String applicationName,
String processName) |
List<String> |
getProcesses(String projectName,
String applicationName) |
String |
getProjects() |
Release |
getRelease(String configuration,
String projectName,
String releaseName) |
List<String> |
getReleaseNames(String configuration,
String projectName) |
List<Map<String,Object>> |
getReleaseRuns(String conf,
String projectName,
String releaseName) |
List<String> |
getReleases(String conf,
String projectName) |
String |
getSessionId() |
boolean |
isSecretCreds() |
boolean |
isUserNameAndPasswordCreds() |
String |
runPipeline(String projectName,
String pipelineName,
String stageOption,
String startingStage,
List<String> stagesToRun,
net.sf.json.JSONArray additionalOptions) |
String |
runProcedure(String projectName,
String procedureName,
net.sf.json.JSONArray actualParameters) |
String |
runProcess(String projectName,
String applicationName,
String processName,
String environmentProjectName,
String environmentName,
net.sf.json.JSONArray actualParameters) |
String |
runRelease(String projectName,
String releaseName,
List stagesToRun,
String startingStage,
net.sf.json.JSONArray pipelineParameters) |
String |
runRestAPI(String urlPath,
HttpMethod httpMethod) |
String |
runRestAPI(String urlPath,
HttpMethod httpMethod,
String body) |
String |
runRestAPI(String urlPath,
HttpMethod httpMethod,
String body,
List<Pair> parameters) |
void |
testConnection() |
String |
uploadArtifact(List<File> fileList,
String uploadWorkspace,
String repo,
String name,
String version,
boolean uploadDirectory) |
String |
uploadArtifact(Run<?,?> build,
TaskListener listener,
String repo,
String name,
String version,
String path,
boolean uploadDirectory,
FilePath workspace) |
public ElectricFlowClient(String url, String name, String password, String apiVersion, boolean ignoreSslConnectionErrors)
public String deployApplicationPackage(String group, String key, String version, String file) throws IOException
IOException
public String runPipeline(String projectName, String pipelineName, String stageOption, String startingStage, List<String> stagesToRun, net.sf.json.JSONArray additionalOptions) throws IOException, PluginException
IOException
PluginException
public String runProcess(String projectName, String applicationName, String processName, String environmentProjectName, String environmentName, net.sf.json.JSONArray actualParameters) throws IOException
IOException
public String runProcedure(String projectName, String procedureName, net.sf.json.JSONArray actualParameters) throws IOException
IOException
public String runRelease(String projectName, String releaseName, List stagesToRun, String startingStage, net.sf.json.JSONArray pipelineParameters) throws IOException
IOException
public String runRestAPI(String urlPath, HttpMethod httpMethod) throws IOException
IOException
public String runRestAPI(String urlPath, HttpMethod httpMethod, String body) throws IOException
IOException
public String runRestAPI(String urlPath, HttpMethod httpMethod, String body, List<Pair> parameters) throws IOException
IOException
public net.sf.json.JSONObject attachCIBuildDetails(CIBuildDetail details) throws IOException
IOException
public String uploadArtifact(Run<?,?> build, TaskListener listener, String repo, String name, String version, String path, boolean uploadDirectory, FilePath workspace) throws IOException, KeyManagementException, NoSuchAlgorithmException, InterruptedException
public String uploadArtifact(List<File> fileList, String uploadWorkspace, String repo, String name, String version, boolean uploadDirectory) throws IOException, KeyManagementException, NoSuchAlgorithmException, InterruptedException
public List<String> getApplications(String projectName) throws IOException
IOException
public List<String> getProcedures(String projectName) throws IOException
IOException
public List<String> getArtifactRepositories() throws Exception
Exception
public boolean isUserNameAndPasswordCreds()
public boolean isSecretCreds()
public String getElectricFlowUrl()
public List<String> getEnvironments(String projectName) throws IOException
IOException
public List<String> getFormalParameters(String projectName, String applicationName, String applicationProcessName) throws IOException
IOException
public List<String> getProcedureFormalParameters(String projectName, String procedureName) throws IOException
IOException
public List<String> getPipelineFormalParameters(String projectName, String pipelineName) throws Exception
Exception
public List<String> getPipelineFormalParameters(String pipelineId) throws Exception
Exception
public List<String> getPipelineStagesNames(String projectName, String pipelineName) throws IOException
IOException
public List<StageResponseData> getPipelineStages(String projectName, String pipelineName) throws IOException
IOException
public String getPipelineId(String projectName, String pipelineName) throws Exception
Exception
public String getPipelines(String projectName) throws IOException
IOException
public net.sf.json.JSONObject getProcess(String projectName, String applicationName, String processName) throws IOException
IOException
public List<String> getProcesses(String projectName, String applicationName) throws IOException
IOException
public String getProjects() throws IOException
IOException
public Release getRelease(String configuration, String projectName, String releaseName) throws Exception
Exception
public List<String> getReleaseNames(String configuration, String projectName) throws Exception
Exception
public List<Map<String,Object>> getReleaseRuns(String conf, String projectName, String releaseName) throws Exception
Exception
public List<String> getReleases(String conf, String projectName) throws Exception
Exception
public void testConnection() throws IOException
IOException
public String getSessionId() throws IOException
IOException
public GetJobStatusResponseData getCdJobStatus(String cdJobId) throws IOException
IOException
public GetPipelineRuntimeDetailsResponseData getCdPipelineRuntimeDetails(String flowRuntimeId) throws IOException
IOException
Copyright © 2016–2024. All rights reserved.