public class GitlabFunctions extends GitProviderFunctions
Constructor and Description |
---|
GitlabFunctions(boolean isExecute,
LogFunctions pFLOG) |
Modifier and Type | Method and Description |
---|---|
void |
buildPackages(java.lang.Object pPayload,
java.util.Map<java.lang.String,java.lang.String> pQueryParameters,
java.lang.Boolean pCreateStreams)
Build Packages using the given projectId and/or packageName in the query parameters or finding packages to build from the payload.
|
void |
buildProjects(java.lang.Object pPayload,
java.util.Map<java.lang.String,java.lang.String> pQueryParameters,
java.lang.Boolean pCreateStreams)
Build Projects using the given projectId in the query parameters or finding projects to build from the payload.
|
PollingResult |
getChangeLogs(java.lang.Object pPayload)
Finds FlexDeploy change logs from a Gitlab payload.
|
PollingResult |
getChangeLogs(java.lang.Object pPayload,
boolean pIgnoreTargetBranchMerge)
Finds FlexDeploy change logs from a Gitlab payload.
|
java.lang.String |
getGroovyKey() |
buildPackages, buildProjects, cleanup, getAM, getFlexDeployFunctions, getJsonObjectFromPayload, getOrCreateStreamId
decryptIntegrationInstance, doSimpleGet, findIntegrationInstanceByCode, getLogFunctions, getServerBaseUrl, setScriptRef
public GitlabFunctions(boolean isExecute, LogFunctions pFLOG)
public PollingResult getChangeLogs(java.lang.Object pPayload) throws FlexCheckedException
pPayload
- Json payload from Gitlab push event. This MUST be the push event payload.FlexCheckedException
public PollingResult getChangeLogs(java.lang.Object pPayload, boolean pIgnoreTargetBranchMerge) throws FlexCheckedException
pPayload
- Json payload from Gitlab push event. This MUST be the push event payload.pIgnoreTargetBranchMerge
- Exclude commits that were merged from the target branch into this branch. When using git flow this will ignore merges.
done from the target branch 'develop' into your feature branch. Default value is true.FlexCheckedException
public void buildPackages(java.lang.Object pPayload, java.util.Map<java.lang.String,java.lang.String> pQueryParameters, java.lang.Boolean pCreateStreams) throws FlexCheckedException
pPayload
- GitLab push payload. MUST be the push payload.pQueryParameters
- Query Parameters from GitLab push event. This must be the push event payload.pCreateStreams
- Should streams be created if not found on the projects?FlexCheckedException
public void buildProjects(java.lang.Object pPayload, java.util.Map<java.lang.String,java.lang.String> pQueryParameters, java.lang.Boolean pCreateStreams) throws FlexCheckedException
pPayload
- GitLab push payload. MUST be the push payload.pQueryParameters
- Query Parameters from GitLab push event. This must be the push event payload.pCreateStreams
- Should streams be created if not found on the projects?FlexCheckedException
public java.lang.String getGroovyKey()
getGroovyKey
in class BaseFunctions