Class AzureFunctions
java.lang.Object
flexagon.fd.services.groovy.functions.BaseFunctions
flexagon.fd.services.groovy.functions.GitProviderFunctions
flexagon.fd.services.groovy.functions.AzureFunctions
Utility functions used to get information from an Azure Git payload
- Since:
- 5.4.0.4
-
Field Summary
Fields inherited from class flexagon.fd.services.groovy.functions.BaseFunctions
mFLOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildPackages(Object pPayload, Map<String, String> pQueryParameters, Boolean pCreateStreams, String pAzureUser, String pAzureToken) Build Packages using the given projectId and/or packageName in the query parameters or finding projects to build from the payload.voidbuildProjects(Object pPayload, Map<String, String> pQueryParameters, Boolean pCreateStreams, String pAzureUser, String pAzureToken) Build Projects using the given projectId in the query parameters or finding projects to build from the payload.getChangeLogs(Object pPayload, String pUser, String pToken) Finds FlexDeploy change logs from an Azure Git payload.getChangeLogs(Object pPayload, String pUser, String pToken, boolean pIgnoreTargetBranchMerge) Finds FlexDeploy change logs from an Azure Git 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
-
AzureFunctions
-
-
Method Details
-
getChangeLogs
public PollingResult getChangeLogs(Object pPayload, String pUser, String pToken) throws FlexCheckedException Finds FlexDeploy change logs from an Azure Git payload. Return object can be passed to other FlexDeploy functions to improve performance. Azure does not send changed files in the push event, but that information is available via their commits api. This function will use that api and as such requires a valid user and personal access token to make the api call.- Parameters:
pPayload- JSON payload from an Azure Git push event. This MUST be the push event payloadpUser- Azure user to make api calls withpToken- Azure access token to make api calls with- Returns:
- A PollingResult object containing information such as change logs, revisions and committer
- Throws:
FlexCheckedException
-
getChangeLogs
public PollingResult getChangeLogs(Object pPayload, String pUser, String pToken, boolean pIgnoreTargetBranchMerge) throws FlexCheckedException Finds FlexDeploy change logs from an Azure Git payload. Return object can be passed to other FlexDeploy functions to improve performance. Azure does not send changed files in the push event, but that information is available via their commits api. This function will use that api and as such requires a valid user and personal access token to make the api call.- Parameters:
pPayload- JSON payload from an Azure Git push event. This MUST be the push event payloadpUser- Azure user to make api calls withpToken- Azure access token to make api calls withpIgnoreTargetBranchMerge- 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
-
buildPackages
public void buildPackages(Object pPayload, Map<String, String> pQueryParameters, Boolean pCreateStreams, String pAzureUser, String pAzureToken) throws FlexCheckedExceptionBuild Packages using the given projectId and/or packageName in the query parameters or finding projects to build from the payload.- Parameters:
pPayload- Json payload from Azure push event. This MUST be the push event payloadpQueryParameters- Query Parameters from Azure push event. This must be the push event payload.pCreateStreams- Should streams be created if not found on the projects?pAzureUser- Azure usernamepAzureToken- Azure token- Throws:
FlexCheckedException
-
buildProjects
public void buildProjects(Object pPayload, Map<String, String> pQueryParameters, Boolean pCreateStreams, String pAzureUser, String pAzureToken) throws FlexCheckedExceptionBuild Projects using the given projectId in the query parameters or finding projects to build from the payload.- Parameters:
pPayload- Json payload from Azure push event. This MUST be the push event payloadpQueryParameters- Query Parameters from Azure push event. This must be the push event payload.pCreateStreams- Should streams be created if not found on the projects?pAzureUser- Azure usernamepAzureToken- Azure token- Throws:
FlexCheckedException
-
getGroovyKey
- Specified by:
getGroovyKeyin classBaseFunctions
-