public abstract class GitProviderFunctions extends BaseFunctions
mExecute, mFLOG, mScriptRef
Constructor and Description |
---|
GitProviderFunctions(boolean isExecute,
LogFunctions pLogFunctions) |
Modifier and Type | Method and Description |
---|---|
protected void |
buildPackages(java.lang.String repoName,
java.lang.String branchName,
java.lang.Boolean createBranches,
PollingResult logs,
java.util.Map<java.lang.String,java.lang.String> pQueryParameters) |
protected void |
buildProjects(java.lang.String repoName,
java.lang.String branchName,
java.lang.Boolean createBranches,
PollingResult logs,
java.util.Map<java.lang.String,java.lang.String> pQueryParameters) |
void |
cleanup() |
protected FlexDeploy2Functions |
getFlexDeployFunctions() |
protected JsonObject |
getJsonObjectFromPayload(java.lang.Object pPayload)
Take in the json payload and convert it to a JsonObject
|
protected java.lang.Long |
getOrCreateBranchId(java.lang.Long pProjectId,
java.lang.String pBranchName,
java.lang.Boolean createBranch)
Tries to get the branch id, if unable to it creates a branch and returns that id
|
captureSecureValuesForLogFunction, decryptIntegrationInstance, doSimpleGet, findIntegrationInstanceByCode, getGroovyKey, getLogFunctions, getServerBaseUrl, setScriptRef
public GitProviderFunctions(boolean isExecute, LogFunctions pLogFunctions)
protected FlexDeploy2Functions getFlexDeployFunctions()
protected java.lang.Long getOrCreateBranchId(java.lang.Long pProjectId, java.lang.String pBranchName, java.lang.Boolean createBranch)
pProjectId
- id of the projectpBranchName
- name of the branchFlexCheckedException
- if the branch is not found and cannot be created.protected void buildPackages(java.lang.String repoName, java.lang.String branchName, java.lang.Boolean createBranches, PollingResult logs, java.util.Map<java.lang.String,java.lang.String> pQueryParameters)
protected void buildProjects(java.lang.String repoName, java.lang.String branchName, java.lang.Boolean createBranches, PollingResult logs, java.util.Map<java.lang.String,java.lang.String> pQueryParameters)
protected JsonObject getJsonObjectFromPayload(java.lang.Object pPayload) throws FlexCheckedException
pPayload
- JSON payloadFlexCheckedException
- if the payload can not be parsed as JSONpublic void cleanup()
cleanup
in class BaseFunctions