public class VBStudioFunctions extends GithubFunctions
mExecute, mFLOG, mScriptRef
Constructor and Description |
---|
VBStudioFunctions(boolean isExecute,
LogFunctions pLogFunctions) |
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 GitHub payload.
|
PollingResult |
getChangeLogs(java.lang.Object pPayload,
boolean pIgnoreTargetBranchMerge)
Finds FlexDeploy change logs from a GitHub payload.
|
java.lang.String |
getGroovyKey() |
protected boolean |
isBranchDeleted(JsonObject payload) |
buildPackages, buildProjects, cleanup, getFlexDeployFunctions, getJsonObjectFromPayload
captureSecureValuesForLogFunction, decryptIntegrationInstance, doSimpleGet, findIntegrationInstanceByCode, getBinding, getLogFunctions, getServerBaseUrl, setBinding, setScriptRef
public VBStudioFunctions(boolean isExecute, LogFunctions pLogFunctions)
public void buildProjects(java.lang.Object pPayload, java.util.Map<java.lang.String,java.lang.String> pQueryParameters, java.lang.Boolean pCreateStreams) throws FlexCheckedException
buildProjects
in class GithubFunctions
pPayload
- Json payload from Visual Builder Studio push event (GitHub Compatible).
This
MUST be the push
event
payloadpQueryParameters
- Query Parameters from Visual Builder Studio push event. This must be
the push event
payload.pCreateStreams
- Should streams be created if not found on the projects?FlexCheckedException
public void buildPackages(java.lang.Object pPayload, java.util.Map<java.lang.String,java.lang.String> pQueryParameters, java.lang.Boolean pCreateStreams) throws FlexCheckedException
GithubFunctions
buildPackages
in class GithubFunctions
pPayload
- Json payload from GitHub push event. This MUST be the push event
payloadpQueryParameters
- Query Parameters from GitHub push event. This must be the push event
payload.pCreateStreams
- Should streams be created if not found on the projects?FlexCheckedException
public PollingResult getChangeLogs(java.lang.Object pPayload) throws FlexCheckedException
GithubFunctions
getChangeLogs
in class GithubFunctions
pPayload
- Json payload from GitHub push event. This MUST be the push event payloadFlexCheckedException
public PollingResult getChangeLogs(java.lang.Object pPayload, boolean pIgnoreTargetBranchMerge) throws FlexCheckedException
GithubFunctions
getChangeLogs
in class GithubFunctions
pPayload
- Json payload from GitHub push event. This MUST be the push
event payloadpIgnoreTargetBranchMerge
- 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 trueFlexCheckedException
protected boolean isBranchDeleted(JsonObject payload)
isBranchDeleted
in class GithubFunctions
public java.lang.String getGroovyKey()
getGroovyKey
in class GithubFunctions