Class VBStudioFunctions
java.lang.Object
flexagon.fd.services.groovy.functions.BaseFunctions
flexagon.fd.services.groovy.functions.GitProviderFunctions
flexagon.fd.services.groovy.functions.GithubFunctions
flexagon.fd.services.groovy.functions.VBStudioFunctions
-
Field Summary
Fields inherited from class flexagon.fd.services.groovy.functions.BaseFunctions
mFLOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidBuild Packages using the given projectId and/or packageName in the query parameters or finding packages to build from the payload.voidBuild Projects using the given projectId in the query parameters or finding projects to build from the payload.getChangeLogs(Object pPayload) Finds FlexDeploy change logs from a GitHub payload.getChangeLogs(Object pPayload, boolean pIgnoreTargetBranchMerge) Finds FlexDeploy change logs from a GitHub payload.protected booleanisBranchDeleted(JsonObject payload) Methods inherited from class flexagon.fd.services.groovy.functions.GitProviderFunctions
buildPackages, buildProjects, cleanup, getFlexDeployFunctions, getJsonObjectFromPayloadMethods inherited from class flexagon.fd.services.groovy.functions.BaseFunctions
captureSecureValues, captureSecureValuesForLogFunction, decryptIntegrationInstance, doSimpleGet, findIntegrationInstanceByCode, getBinding, getLogFunctions, getServerBaseUrl, setBinding
-
Constructor Details
-
VBStudioFunctions
-
-
Method Details
-
buildProjects
public void buildProjects(Object pPayload, Map<String, String> pQueryParameters, Boolean pCreateStreams) throws FlexCheckedExceptionBuild Projects using the given projectId in the query parameters or finding projects to build from the payload.- Overrides:
buildProjectsin classGithubFunctions- Parameters:
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?- Throws:
FlexCheckedException
-
buildPackages
public void buildPackages(Object pPayload, Map<String, String> pQueryParameters, Boolean pCreateStreams) throws FlexCheckedExceptionDescription copied from class:GithubFunctionsBuild Packages using the given projectId and/or packageName in the query parameters or finding packages to build from the payload.- Overrides:
buildPackagesin classGithubFunctions- Parameters:
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?- Throws:
FlexCheckedException
-
getChangeLogs
Description copied from class:GithubFunctionsFinds FlexDeploy change logs from a GitHub payload. Return object can be passed to other FlexDeploy functions to improve performance.- Overrides:
getChangeLogsin classGithubFunctions- Parameters:
pPayload- Json payload from GitHub push event. This MUST be the push event payload- Returns:
- A PollingResult object containing information such as change logs, revisions and committer
- Throws:
FlexCheckedException
-
getChangeLogs
public PollingResult getChangeLogs(Object pPayload, boolean pIgnoreTargetBranchMerge) throws FlexCheckedException Description copied from class:GithubFunctionsFinds FlexDeploy change logs from a GitHub payload. Return object can be passed to other FlexDeploy functions to improve performance.- Overrides:
getChangeLogsin classGithubFunctions- Parameters:
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 true- Returns:
- A PollingResult object containing information such as change logs, revisions and committer
- Throws:
FlexCheckedException
-
isBranchDeleted
protected boolean isBranchDeleted(JsonObject payload) - Overrides:
isBranchDeletedin classGithubFunctions
-
getGroovyKey
- Overrides:
getGroovyKeyin classGithubFunctions
-