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