public class BitbucketServerFunctions extends GitProviderFunctions
mExecute, mFLOG, mScriptRef
Constructor and Description |
---|
BitbucketServerFunctions(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,
java.lang.String pBitbucketUser,
java.lang.String pBitbucketPassword)
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,
java.lang.String pBitbucketUser,
java.lang.String pBitbucketPassword)
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 pBitbucketUser,
java.lang.String pBitbucketPassword)
Finds FlexDeploy change logs from a Bitbucket Server payload.
|
PollingResult |
getChangeLogs(java.lang.Object pPayload,
java.lang.String pBitbucketUser,
java.lang.String pBitbucketPassword,
boolean pIgnoreTargetBranchMerge)
Finds FlexDeploy change logs from a Bitbucket Server payload.
|
PollingResult |
getChangeLogs(java.lang.Object pPayload,
java.lang.String pBitbucketUser,
java.lang.String pBitbucketPassword,
boolean pIgnoreTargetBranchMerge,
java.lang.Integer pLimit)
Finds FlexDeploy change logs from a Bitbucket Server payload.
|
java.lang.String |
getGroovyKey() |
buildPackages, buildProjects, cleanup, getFlexDeployFunctions, getJsonObjectFromPayload, getOrCreateBranchId
decryptIntegrationInstance, doSimpleGet, findIntegrationInstanceByCode, getLogFunctions, getServerBaseUrl, setScriptRef
public BitbucketServerFunctions(boolean isExecute, LogFunctions pFLOG)
public PollingResult getChangeLogs(java.lang.Object pPayload, java.lang.String pBitbucketUser, java.lang.String pBitbucketPassword) throws FlexCheckedException
pPayload
- JSON payload from a Bitbucket push event. This MUST be the push event payloadpBitbucketUser
- Valid Bitbucket user to make api calls withpBitbucketPassword
- Password or Personal Access Token for the userFlexCheckedException
public PollingResult getChangeLogs(java.lang.Object pPayload, java.lang.String pBitbucketUser, java.lang.String pBitbucketPassword, boolean pIgnoreTargetBranchMerge) throws FlexCheckedException
pPayload
- JSON payload from a Bitbucket push event. This MUST be the push event payloadpBitbucketUser
- Valid Bitbucket user to make api calls withpBitbucketPassword
- Password or Personal Access Token for the userpIgnoreTargetBranchMerge
- Exclude merge commits on your target branch. Default value is true and false should only be used in very rare cases.FlexCheckedException
public PollingResult getChangeLogs(java.lang.Object pPayload, java.lang.String pBitbucketUser, java.lang.String pBitbucketPassword, boolean pIgnoreTargetBranchMerge, java.lang.Integer pLimit) throws FlexCheckedException
pPayload
- JSON payload from a Bitbucket push event. This MUST be the
push event payloadpBitbucketUser
- Valid Bitbucket user to make api calls withpBitbucketPassword
- Password or Personal Access Token for the userpIgnoreTargetBranchMerge
- Exclude merge commits on your target branch. Default value is
true and false should only be used in very rare cases.pLimit
- Apply the limit filter as this can be adjusted up to maximum of 1000 results per request.FlexCheckedException
public void buildPackages(java.lang.Object pPayload, java.util.Map<java.lang.String,java.lang.String> pQueryParameters, java.lang.Boolean pCreateStreams, java.lang.String pBitbucketUser, java.lang.String pBitbucketPassword) throws FlexCheckedException
pPayload
- Json payload from Bitbucket Server push event. This MUST be the push event payloadpQueryParameters
- Query Parameters from Bitbucket Server push event. This must be the push event payload.pCreateStreams
- Should streams be created if not found on the projects?pBitbucketUser
- Bitbucket Server usernamepBitbucketPassword
- Bitbucket Server passwordFlexCheckedException
public void buildProjects(java.lang.Object pPayload, java.util.Map<java.lang.String,java.lang.String> pQueryParameters, java.lang.Boolean pCreateStreams, java.lang.String pBitbucketUser, java.lang.String pBitbucketPassword) throws FlexCheckedException
pPayload
- Json payload from Bitbucket Server push event. This MUST be the push event payloadpQueryParameters
- Query Parameters from Bitbucket Server push event. This must be the push event payload.pCreateStreams
- Should streams be created if not found on the projects?pBitbucketUser
- Bitbucket Server usernamepBitbucketPassword
- Bitbucket Server passwordFlexCheckedException
public java.lang.String getGroovyKey()
getGroovyKey
in class BaseFunctions