public class AzureFunctions extends GitProviderFunctions
mExecute, mFLOG, mScriptRef
Constructor and Description |
---|
AzureFunctions(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,
java.lang.String pAzureUser,
java.lang.String pAzureToken)
Build Packages using the given projectId and/or packageName in the query parameters or finding
projects 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,
java.lang.String pAzureUser,
java.lang.String pAzureToken)
Build Projects using the given projectId in the query parameters or finding projects to build
from the payload.
|
PollingResult |
getChangeLogs(java.lang.Object pPayload,
java.lang.String pUser,
java.lang.String pToken)
Finds FlexDeploy change logs from an Azure Git payload.
|
PollingResult |
getChangeLogs(java.lang.Object pPayload,
java.lang.String pUser,
java.lang.String pToken,
boolean pIgnoreTargetBranchMerge)
Finds FlexDeploy change logs from an Azure Git payload.
|
java.lang.String |
getGroovyKey() |
buildPackages, buildProjects, cleanup, getFlexDeployFunctions, getJsonObjectFromPayload, getOrCreateBranchId
captureSecureValuesForLogFunction, decryptIntegrationInstance, doSimpleGet, findIntegrationInstanceByCode, getLogFunctions, getServerBaseUrl, setScriptRef
public AzureFunctions(boolean isExecute, LogFunctions pLogFunctions)
public PollingResult getChangeLogs(java.lang.Object pPayload, java.lang.String pUser, java.lang.String pToken) throws FlexCheckedException
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 withFlexCheckedException
public PollingResult getChangeLogs(java.lang.Object pPayload, java.lang.String pUser, java.lang.String pToken, boolean pIgnoreTargetBranchMerge) throws FlexCheckedException
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 trueFlexCheckedException
public void buildPackages(java.lang.Object pPayload, java.util.Map<java.lang.String,java.lang.String> pQueryParameters, java.lang.Boolean pCreateStreams, java.lang.String pAzureUser, java.lang.String pAzureToken) throws FlexCheckedException
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 tokenFlexCheckedException
public void buildProjects(java.lang.Object pPayload, java.util.Map<java.lang.String,java.lang.String> pQueryParameters, java.lang.Boolean pCreateStreams, java.lang.String pAzureUser, java.lang.String pAzureToken) throws FlexCheckedException
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 tokenFlexCheckedException
public java.lang.String getGroovyKey()
getGroovyKey
in class BaseFunctions