public class FlexDeployFunctions extends BaseFunctions
Constructor and Description |
---|
FlexDeployFunctions(boolean isExecute,
LogFunctions pFLOG) |
Modifier and Type | Method and Description |
---|---|
void |
activateBranch(java.lang.Long pProjectId,
java.lang.String pBranchName)
Active a FlexDeploy Branch on a project.
|
void |
activateStream(java.lang.Long pProjectId,
java.lang.String pStreamName)
Active a FlexDeploy Stream on a project.
|
void |
addFilesToPackage(java.lang.Long pProjectId,
java.lang.String pPackageName,
java.util.List<java.lang.String> pFiles)
Adds files to a given package.
|
void |
addProjectsToRelease(java.lang.String pReleaseName,
java.util.List<ReleaseProjectsPojo> pReleaseProjects)
Add FlexDeploy projects to a given release.
|
void |
approveTask(java.lang.String pUsername,
java.lang.String pTaskIdentifier,
java.lang.String pNotes)
Approve a FlexDeploy Task.
|
java.lang.Long |
buildPackage(java.lang.Long pStreamId,
ProjectPackagePojo projectPackage)
Builds a FlexDeploy Package.
|
java.lang.Long |
buildPackage(java.lang.Long pStreamId,
ProjectPackagePojo projectPackage,
BuildOptions pBuildOptions)
Builds a FlexDeploy Package.
|
java.lang.Long |
buildPackage(java.lang.Long pStreamId,
ProjectPackagePojo projectPackage,
PollingResult pPollingResult,
BuildOptions pBuildOptions)
Builds a FlexDeploy Package using a PollingResult.
|
java.lang.Long |
buildProject(java.lang.Long pStreamId,
java.lang.Long pProjectId)
Builds a FlexDeploy Project.
|
java.lang.Long |
buildProject(java.lang.Long pStreamId,
java.lang.Long pProjectId,
BuildOptions pBuildOptions)
Builds a FlexDeploy Project.
|
java.lang.Long |
buildProject(java.lang.Long pStreamId,
java.lang.Long pProjectId,
PollingResult pPollingResult,
BuildOptions pBuildOptions)
Builds a FlexDeploy Project using a PollingResult.
|
void |
cleanup() |
void |
completeManualStepBySnapshotId(java.lang.String pUsername,
java.lang.Long pSnapshotId)
Completes a manual step Human task.
|
void |
completeManualStepByTaskId(java.lang.String pUsername,
java.lang.Long pTaskId)
Completes a manual step Human task.
|
java.lang.Long |
createBranch(java.lang.Long pProjectId,
ProjectStreamPojo pBranch)
Create a FlexDeploy Branch on a given project.
|
java.lang.Long |
createBranch(java.lang.Long pProjectId,
java.lang.String pBranchName)
Create a FlexDeploy Branch on a given project.
|
java.lang.Long |
createBranch(java.lang.Long pProjectId,
java.lang.String pBranchName,
java.lang.String pVersionSyntax)
Create a FlexDeploy Branch on a given project.
|
java.lang.Long |
createDynamicPackage(java.lang.Long pProjectId,
java.lang.String pPackageName,
java.lang.String pDescription,
java.lang.String pIncludePath,
java.lang.String pExcludePath)
Creates a dynamic package for given include and exclude path.
|
CMSObject |
createIncidentByWorkflowType(java.lang.Long pWorkflowRequestId,
java.util.Map<java.lang.String,java.io.Serializable> pIncidentFields)
Returns a CMSObject with incident details.
|
CMSObject |
createIncidentForWorklowRequest(java.lang.Long pWorkflowRequestId,
java.util.Map<java.lang.String,java.io.Serializable> pIncidentFields,
java.lang.String pCMSInstanceCode,
java.lang.String pCMSInstanceName)
Returns a CMSObject with incident details for a particular CMS Instance by searching with Instance Name and Instance Code.
|
java.lang.Long |
createPackage(java.lang.Long pProjectId,
java.lang.String pPackageName,
java.lang.String pDescription,
java.util.List<java.lang.String> pFiles)
Creates a package for a given project and list of files.
|
java.lang.Long |
createPackage(java.lang.Long pProjectId,
java.lang.String pPackageName,
java.lang.String pDescription,
java.lang.Long pStreamId,
PollingResult pPollingResult)
Creates a package for a given project relative to a PollingResult.
|
java.lang.Long |
createProject(ProjectPojo pProjectPojo)
Creates and configures a project with the provided data.
|
java.lang.Long |
createRelease(java.lang.String pReleaseName,
java.lang.String pPipelineName,
java.lang.String pDescription)
Create an empty FlexDeploy Release that defaults to 'Not Started' status.
|
java.lang.Long |
createRelease(java.lang.String pReleaseName,
java.lang.String pPipelineName,
java.lang.String pDescription,
java.lang.String pCronSchedule)
Create an empty scheduled FlexDeploy Release that defaults to 'Not Started' status.
|
java.lang.Long |
createSCMInstance(SCMInstancePojo pSCMInstancePojo)
Creates and configures an SCM instance with the given data.
|
java.lang.Long |
createSCMInstance(java.lang.String pSCMInstanceName,
java.lang.String pDescription,
java.lang.Boolean pIsActive,
java.lang.String pInstanceCode,
java.util.List<PropertyValuePojo> pProperties,
java.lang.String pSCMType)
Creates and configures an SCM Instance with the provided data.
|
java.lang.Long |
createSnapshot(java.lang.Long pReleaseId)
Create a Snapshot for a given Release.
|
java.lang.Long |
createStream(java.lang.Long pProjectId,
ProjectStreamPojo pStream)
Create a FlexDeploy Stream on a given project.
|
java.lang.Long |
createStream(java.lang.Long pProjectId,
java.lang.String pStreamName)
Create a FlexDeploy Stream on a given project.
|
java.lang.Long |
createStream(java.lang.Long pProjectId,
java.lang.String pStreamName,
java.lang.String pVersionSyntax)
Create a FlexDeploy Stream on a given project.
|
void |
deletePackage(java.lang.Long pProjectId,
java.lang.String pPackageName)
Deletes a project package
|
java.lang.Long |
deployPackage(java.lang.Long pProjectId,
java.lang.String pPackageName,
java.lang.String pEnvironmentCode,
DeployOptions pDeployOptions)
Deploys a FlexDeploy Package.
|
java.lang.Long |
deployProject(java.lang.Long pProjectId,
java.lang.String pEnvironmentCode,
DeployOptions pDeployOptions)
Deploys a FlexDeploy Project.
|
java.lang.Integer |
discoverFiles(java.lang.Long pProjectId,
java.lang.Long pStreamId)
Populate partial deployment files for a given project.
|
void |
downloadLogs(java.lang.Long pWorkflowExecutionId,
java.lang.String pDestinationPath)
Downloads the plugin logs from the workflow execution based on Id.
|
void |
downloadSnapshotCommitDetails(java.lang.Long pSnapshotId,
java.lang.String pDestinationPath)
Gets the commit details of a snapshot and downloads a csv file to the destination path.
|
void |
endRelease(java.lang.Long pReleaseId)
End a FlexDeploy Release.
|
void |
endRelease(java.lang.String pReleaseName)
End a FlexDeploy Release.
|
java.lang.Long |
executeUtility(java.lang.Long pProjectId,
java.lang.String pEnvironmentCode)
Executes a FlexDeploy Utility Project for a single environment on all instances configured in Project Configuration.
|
java.lang.Long |
executeUtility(java.lang.Long pProjectId,
java.lang.String pEnvironmentCode,
ExecuteOptions pExecuteOptions)
Executes a FlexDeploy Utility Project for a single environment with specified ExecuteOptions.
|
java.lang.Long |
findBranchId(java.lang.Long pProjectId,
java.lang.String pBranchName)
Finds a FlexDeploy branch id from the Branch name.
|
CMSInstancePojo |
findCMSInstance(java.lang.String pCMSInstanceCode)
Gets a CMSInstance based on the CMS Instance Code passed.
|
java.util.List<EnvironmentPojo> |
findEnvironment(java.lang.String pEnvironmentCode)
Gets the environment with the specified Code.
|
java.lang.Long |
findFolderId(java.lang.String pFolderName)
Finds the FlexDeploy Folder id for any given name.
|
java.util.List<FolderDataObject> |
findFoldersWithName(java.lang.String pFolderName)
Finds FlexDeploy Folders for any given name
|
FolderDataObject |
findFolderWithId(java.lang.Long pFolderId)
Finds Folder using Id.
|
java.util.List<InstancePojo> |
findInstance(java.lang.String pInstanceCode)
Gets the instance with the specified Code.
|
AccountInstancePojo |
findIntegrationInstance(java.lang.String pIntegrationInstanceCode,
java.lang.String pType)
Gets an integration instance based on the Id.
|
PollingResult |
findLocalChangeLogs(java.lang.String pUrl,
java.lang.String pBranch,
java.lang.String pCurrentRevision,
java.lang.String pFromRevision)
Finds change logs for a local ssh enabled git repository.
|
PollingResult |
findLocalChangeLogs(java.lang.String pUrl,
java.lang.String pBranch,
java.lang.String pCurrentRevision,
java.lang.String pFromRevision,
boolean pIgnoreTargetBranchMerge)
Finds change logs for a local ssh enabled git repository.
|
PollingResult |
findLocalChangeLogs(java.lang.String pUrl,
java.lang.String pBranch,
java.lang.String pCurrentRevision,
java.lang.String pFromRevision,
java.lang.String pUser,
java.lang.String pPassword)
Finds change logs for a local git repository.
|
PollingResult |
findLocalChangeLogs(java.lang.String pUrl,
java.lang.String pBranch,
java.lang.String pCurrentRevision,
java.lang.String pFromRevision,
java.lang.String pUser,
java.lang.String pPassword,
boolean pIgnoreTargetBranchMerge)
Finds change logs for a local ssh enabled git repository.
|
java.util.Set<ProjectPackagePojo> |
findPackagesForChange(java.lang.String pRepositoryName,
java.lang.String pStreamName,
java.util.List<java.lang.String> pChangedFiles)
Finds relevant FlexDeploy Packages for a list of changed files.
|
java.util.Set<ProjectPackagePojo> |
findPackagesForChange(java.lang.String pRepositoryName,
java.lang.String pStreamName,
PollingResult pPollingResult)
Finds relevant FlexDeploy Packages for any given PollingResult.
|
java.lang.Long |
findProjectId(java.lang.String pProjectName)
Finds the FlexDeploy Project id for any given name.
|
java.util.Set<java.lang.Long> |
findProjectsForChange(java.lang.String pRepositoryName,
java.lang.String pStreamName,
java.util.List<java.lang.String> pChangedFiles)
Finds relevant FlexDeploy Projects for a list of changed files.
|
java.util.Set<java.lang.Long> |
findProjectsForChange(java.lang.String pRepositoryName,
java.lang.String pStreamName,
PollingResult pPollingResult)
Finds relevant FlexDeploy Projects for any given PollingResult and stream.
|
java.util.Set<java.lang.Long> |
findProjectsForNewBranch(java.lang.String pRepositoryName)
Finds relevant FlexDeploy Projects for a new branch event.
|
java.util.Set<java.lang.Long> |
findProjectsForNewBranch(java.lang.String pRepositoryName,
PollingResult pPollingResult)
Finds relevant FlexDeploy Projects for a new branch event.
|
java.util.List<ProjectDataObject> |
findProjectsWithName(java.lang.String pProjectName)
Finds FlexDeploy Projects for any given name
|
ProjectDataObject |
findProjectWithId(java.lang.Long pProjectId)
Finds Project using Id.
|
java.util.List<ReleasePojo> |
findReleases(java.lang.String pName)
Finds Releases matching the specified name.
|
java.lang.Long |
findStreamId(java.lang.Long pProjectId,
java.lang.String pStreamName)
Finds a FlexDeploy stream id from the Stream name.
|
ChangeManagementSystem |
getChangeManagementSystemByInstanceCode(java.lang.String pInstanceCode)
Returns a CMS System for a particular CMS Instance by searching with Instance Code.
|
ChangeManagementSystem |
getChangeManagementSystemByInstanceId(java.lang.Long pCMSInstanceId)
Returns a CMS System for a particular CMS Instance Id.
|
ChangeManagementSystem |
getChangeManagementSystemByInstanceName(java.lang.String pInstanceName)
Returns a CMS System for a particular CMS Instance by searching with Instance Name.
|
CMSInstancePojo |
getCMSInstance(java.lang.Long pCMSInstanceId)
Gets a CMSInstance based on the CMS Instance Id passed.
|
java.lang.Long |
getCurrentlyDeployedVersionId(java.lang.Long pProjectId,
java.lang.Long pEnvironmentId,
java.lang.Long pInstanceId)
Returns currently deployed project version Id of full deployment project.
|
java.lang.Long |
getCurrentlyDeployedVersionId(java.lang.Long pProjectId,
java.lang.Long pEnvironmentId,
java.lang.Long pInstanceId,
java.lang.String pPackageName)
Returns currently deployed project version Id of partial deployment project.
|
EnvironmentPojo |
getEnvironment(java.lang.Long pEnvironmentId)
Gets the environment with the specified Id.
|
java.lang.String |
getFlexDeployBaseUrl()
Returns the FlexDeploy Server base url configured in System Settings.
|
java.lang.String |
getGroovyKey() |
InstancePojo |
getInstance(java.lang.Long pInstanceId)
Gets the instance with the specified Id.
|
AccountInstancePojo |
getIntegrationInstance(java.lang.Long pIntegrationInstanceId,
java.lang.String pType)
Gets an integration instance based on the Id.
|
IssueTrackingSystem |
getIssueTrackingSystemByInstanceCode(java.lang.String pInstanceCode)
Returns a ITS System for a particular ITS Instance Code.
|
IssueTrackingSystem |
getIssueTrackingSystemByInstanceId(java.lang.Long pITSInstanceId)
Returns a ITS System for a particular ITS Instance Id.
|
IssueTrackingSystem |
getIssueTrackingSystemByInstanceName(java.lang.String pInstanceName)
Returns a ITS System for a particular ITS Instance Name.
|
java.lang.Long |
getMatchingProjectObjectId(java.lang.Long pProjectId,
java.lang.String pFile)
Returns internal id for file in a project.
|
PackageDetailsResponsePojo |
getPackage(java.lang.Long pProjectId,
java.lang.String pPackageName)
Returns a PackageDetailsResponsePojo given a Project Id and Package Name
|
StageExecutionInformationPOJO |
getPipelineStageExecutionInfo(java.lang.Long pStageExecId)
Gets pipeline stage execution info based on the stage exec Id given.
|
StepProjectsRequestPojo |
getPipelineStepProjectsExecution(java.lang.Long pStageExecId,
java.lang.Long pStepId)
Get the project request and execution statuses for a given pipeline step execution
|
StepProjectsRequestPojo |
getPipelineStepProjectsExecution(java.lang.Long pStageExecId,
java.lang.String pStepName)
Get the project request and execution statuses for a given pipeline step execution
|
java.util.Map<java.lang.Long,java.io.InputStream> |
getPluginLogInputStreams(java.lang.Long pWorkflowExecutionId)
Returns plugin logs from a workflow execution as a map with the key being the plugin execution id and value as an InputStream of log data.
|
java.util.Map<java.lang.Long,java.io.InputStream> |
getPluginLogInputStreams(java.lang.Long pWorkflowExecutionId,
java.lang.Boolean pOnlyError)
Returns plugin logs from a workflow execution as a map with the key being the plugin execution id and value as an InputStream of log data.
|
java.util.Collection<PluginLogPojo> |
getPluginLogs(java.lang.Long pWorkflowExecutionId)
Gets the plugin logs from the workflow execution based on Id.
|
java.lang.Long |
getPreviouslyDeployedVersionId(java.lang.Long pProjectId,
java.lang.Long pEnvironmentId,
java.lang.Long pInstanceId)
Returns previously deployed project version Id of full deployment project.
|
java.lang.Long |
getPreviouslyDeployedVersionId(java.lang.Long pProjectId,
java.lang.Long pEnvironmentId,
java.lang.Long pInstanceId,
java.lang.String pPackageName)
Returns previously deployed project version Id of partial deployment project.
|
ProjectPojo |
getProject(java.lang.Long pProjectId)
Returns project information for a given projectId.
|
ReleasePojo |
getRelease(java.lang.Long pId)
Gets a release by a specific id.
|
java.util.List<ReleaseProjectDetailsPojo> |
getReleaseProjectInfo(java.lang.Long pReleaseDefId)
Gets release project info based on the release definition Id.
|
ScanResultPojo |
getScanResultForSonarqube(java.lang.String pBaseUrl,
java.lang.String pProjectKey)
get Scan result for SonarQube
|
java.io.InputStream |
getSnapshotCommitDetailInputStreams(java.lang.Long pSnapshotId)
Gets the commit details of a snapshot and returns an input stream of the data.
|
java.util.List<ReleaseSnapshotCommitDetailsPojo> |
getSnapshotCommitDetails(java.lang.Long pSnapshotId)
Gets the commit details of a snapshot and returns an object with the data.
|
FdUserDataObject |
getUser(java.lang.String pUsername)
Returns user information for a given username.
|
java.util.List<FDUser> |
getUsersFromGroupId(java.lang.Long pGroupId)
Gets a list of FDUser objects that are members of the group with the given group Id.
|
java.util.List<FDUser> |
getUsersFromRoleId(java.lang.Long pRoleId)
Gets a list of the users that are members of the pipeline role with the specified role Id.
|
void |
inactivateBranch(java.lang.Long pProjectId,
java.lang.String pBranchName)
Inactivates a project stream using AM method to patch stream
|
void |
inactivateStream(java.lang.Long pProjectId,
java.lang.String pStreamName)
Inactivates a project stream using AM method to patch stream
|
void |
patchBranch(java.lang.Long pProjectId,
java.lang.Long pBranchId,
ProjectStreamDataObject pBranch)
Patches a FlexDeploy Branch on a given project.
|
java.lang.Long |
patchProject(java.lang.Long pProjectId,
ProjectPojo pProjectPojo)
Updates a project with the provided data.
|
java.lang.Long |
patchProjectProperties(java.lang.Long pProjectId,
java.util.List<PropertyValuePojo> pPropertyPojos)
Updates a project's properties with the provided data.
|
void |
patchStream(java.lang.Long pProjectId,
java.lang.Long pStreamId,
ProjectStreamDataObject pStream)
Patches a FlexDeploy Stream on a given project.
|
void |
pauseRelease(java.lang.Long pReleaseId)
Pause a FlexDeploy Release.
|
void |
pauseRelease(java.lang.String pReleaseName)
Pause a FlexDeploy Release.
|
java.lang.Integer |
populateFiles(java.lang.Long pProjectId,
java.lang.Long pStreamId)
Deprecated.
|
void |
rejectTask(java.lang.String pUsername,
java.lang.String pTaskIdentifier,
java.lang.String pNotes)
Reject a FlexDeploy Task.
|
void |
removeProjectsFromRelease(java.lang.String pReleaseName,
java.util.List<ReleaseProjectsPojo> pReleaseProjects)
Remove FlexDeploy projects from a given release.
|
<any> |
searchBranches(ProjectStreamDataObject pCriteriaObject,
java.lang.Integer pLimit,
java.lang.Integer pOffset)
Find Branches using criteria values provided.
|
<any> |
searchFolders(FolderDataObject pCriteriaObject,
java.lang.Integer pLimit,
java.lang.Integer pOffset)
Find Folders using criteria values provided.
|
<any> |
searchProjectPackages(ProjectPackageDataObject pCriteriaObject,
java.lang.Integer pLimit,
java.lang.Integer pOffset)
Find Packages using criteria values provided.
|
<any> |
searchProjects(ProjectDataObject pCriteriaObject,
java.lang.Integer pLimit,
java.lang.Integer pOffset)
Find Projects using criteria values provided.
|
void |
startRelease(java.lang.Long pReleaseId)
Start a FlexDeploy Release.
|
void |
startRelease(java.lang.String pReleaseName)
Start a FlexDeploy Release.
|
void |
updateBranch(java.lang.Long pProjectId,
java.lang.Long pBranchId,
ProjectStreamPojo pBranch)
Updates a FlexDeploy Branch on a given project.
|
void |
updatePackage(java.lang.Long pProjectId,
java.lang.String pPackageName,
java.lang.Long pStreamId,
PollingResult pPollingResult)
Updates a given package relative to a PollingResult.
|
void |
updatePackage(java.lang.Long pProjectId,
java.lang.String pPackageName,
java.lang.Long pStreamId,
PollingResult pPollingResult,
boolean pSortFiles)
Updates a given package relative to a PollingResult.
|
void |
updatePackageStatus(java.lang.Long pProjectId,
java.lang.String pPackageName,
java.lang.String pPackageStatus)
Updates a given package status.
|
java.lang.Long |
updateProject(java.lang.Long pProjectId,
ProjectPojo pProjectPojo)
Updates a project with the provided data.
|
java.lang.Long |
updateProjectProperties(java.lang.Long pProjectId,
java.util.List<PropertyValuePojo> pPropertyPojos)
Updates a project's properties with the provided data.
|
java.lang.Long |
updateReleaseProperty(java.lang.Long pReleaseDefId,
java.lang.String pPropertyKeyCode,
java.io.Serializable pNewValue)
Updates a release's property with the provided property key code.
|
void |
updateScanResult(java.lang.Long pProjectId,
java.lang.String pScanId,
ScanResultPojo pScanResultPojo,
boolean pIsStatusSuccess)
Updates a FlexDeploy ScanResult on a given project.
|
java.lang.Long |
updateSCMInstance(java.lang.Long pSCMInstanceId,
SCMInstancePojo pSCMInstancePojo)
Updates an SCM instance with the given data.
|
java.lang.Long |
updateSCMInstance(java.lang.Long pSCMInstanceId,
java.lang.String pSCMInstanceName,
java.lang.String pDescription,
java.lang.Boolean pIsActive,
java.lang.String pInstanceCode,
java.util.List<PropertyValuePojo> pProperties,
java.lang.String pSCMType)
Updates an SCM instance with the given data.
|
java.lang.Long |
updateSnapshotVariable(java.lang.Long pSnapshotId,
java.lang.String pVariableCode,
java.io.Serializable pNewValue)
Updates a snapshot's variable with the provided variable code.
|
void |
updateStream(java.lang.Long pProjectId,
java.lang.Long pStreamId,
ProjectStreamPojo pStream)
Updates a FlexDeploy Stream on a given project.
|
approveTask, approveTaskByEmails, completeManualStepBySnapshotId, completeManualStepByTaskId, decryptIntegrationInstance, doSimpleGet, findIntegrationInstance, getLogFunctions, getServerBaseUrl, rejectTask, rejectTaskByEmails
public FlexDeployFunctions(boolean isExecute, LogFunctions pFLOG)
public PollingResult findLocalChangeLogs(java.lang.String pUrl, java.lang.String pBranch, java.lang.String pCurrentRevision, java.lang.String pFromRevision) throws FlexCheckedException
findLocalChangeLogs
pUrl
- Url of the git repository to find logs againstpBranch
- Branch to find logs againstpCurrentRevision
- Current revision after the pushpFromRevision
- Previous revision before the pushFlexDeployValidationException
- if an invalid revision is passed.FlexCheckedException
public PollingResult findLocalChangeLogs(java.lang.String pUrl, java.lang.String pBranch, java.lang.String pCurrentRevision, java.lang.String pFromRevision, boolean pIgnoreTargetBranchMerge) throws FlexCheckedException
findLocalChangeLogs
pUrl
- Url of the git repository to find logs againstpBranch
- Branch to find logs againstpCurrentRevision
- Current revision after the pushpFromRevision
- Previous revision before the pushpIgnoreTargetBranchMerge
- 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 trueFlexDeployValidationException
- if an invalid revision is passed.FlexCheckedException
public PollingResult findLocalChangeLogs(java.lang.String pUrl, java.lang.String pBranch, java.lang.String pCurrentRevision, java.lang.String pFromRevision, java.lang.String pUser, java.lang.String pPassword) throws FlexCheckedException
pUrl
- Url of the git repository to find logs againstpBranch
- Branch to find logs againstpCurrentRevision
- Current revision after the pushpFromRevision
- Previous revision before the pushpUser
- User to use for local credentialspPassword
- Password of the userFlexDeployValidationException
- if an invalid revision is passed.FlexCheckedException
public PollingResult findLocalChangeLogs(java.lang.String pUrl, java.lang.String pBranch, java.lang.String pCurrentRevision, java.lang.String pFromRevision, java.lang.String pUser, java.lang.String pPassword, boolean pIgnoreTargetBranchMerge) throws FlexCheckedException
findLocalChangeLogs
pUrl
- Url of the git repository to find logs againstpBranch
- Branch to find logs againstpCurrentRevision
- Current revision after the pushpFromRevision
- Previous revision before the pushpUser
- User to use for local credentialspPassword
- Password of the userpIgnoreTargetBranchMerge
- 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 trueFlexDeployValidationException
- if an invalid revision is passed.FlexCheckedException
public ProjectPojo getProject(java.lang.Long pProjectId) throws FlexDeployRowNotFoundException
pProjectId
- Project Id of the project to retrieveFlexDeployRowNotFoundException
- if no project is found for given pProjectId
public ReleasePojo getRelease(java.lang.Long pId)
pId
- Release IdFlexDeployRowNotFoundException
- if no Release is found for the given pId
public java.util.List<ReleasePojo> findReleases(java.lang.String pName) throws FlexDeployRowNotFoundException
getRelease
this method returns a list of Releases.pName
- Name to search byFlexDeployRowNotFoundException
- if no releases match the naming criteria pName
public java.lang.Long createProject(ProjectPojo pProjectPojo)
pProjectPojo
- - Object containing project configuration information.public java.lang.Long updateProject(java.lang.Long pProjectId, ProjectPojo pProjectPojo)
pProjectId
- - Id of the project that is to be updated.pProjectPojo-
- Object containing project configuration information.FlexDeployRowNotFoundException
- if pProjectId
does not exist.public java.lang.Long patchProject(java.lang.Long pProjectId, ProjectPojo pProjectPojo)
pProjectId
- - Id of the project that is to be updated.pProjectPojo-
- Object containing project configuration information.FlexDeployRowNotFoundException
- if pProjectId
does not exist.public java.lang.Long updateProjectProperties(java.lang.Long pProjectId, java.util.List<PropertyValuePojo> pPropertyPojos)
pProjectId
- - Id of the project that is to be updated.pPropertyPojos
- - List of property values to be updated on project.public java.lang.Long patchProjectProperties(java.lang.Long pProjectId, java.util.List<PropertyValuePojo> pPropertyPojos)
pProjectId
- - Id of the project that is to be updated.pPropertyPojos
- - List of property values to be updated on project.public void addFilesToPackage(java.lang.Long pProjectId, java.lang.String pPackageName, java.util.List<java.lang.String> pFiles) throws FlexDeployRowNotFoundException
pProjectId
- Parent project id of the packagepPackageName
- Name of the packagepFiles
- Filepaths to add to the package.FlexDeployRowNotFoundException
- if pPackageName
does not exist on project pProjectId
.@Deprecated public java.lang.Integer populateFiles(java.lang.Long pProjectId, java.lang.Long pStreamId)
pProjectId
- Project id to populate files for. This should be a project using partial deployment.pStreamId
- Stream id to use when populating.FlexDeployAPIException
- if it is message wrapper error.findStreamId(java.lang.Long, java.lang.String)
public java.lang.Integer discoverFiles(java.lang.Long pProjectId, java.lang.Long pStreamId)
pProjectId
- Project id to populate files for. This should be a project using partial deployment.pStreamId
- Stream id to use when populating.FlexDeployAPIException
- if it is message wrapper error.findStreamId(java.lang.Long, java.lang.String)
public void updatePackageStatus(java.lang.Long pProjectId, java.lang.String pPackageName, java.lang.String pPackageStatus)
pProjectId
- Parent project id of the packagepPackageName
- Name of the packagepPackageStatu}
- The updated package status [ACTIVE, COMPLETED, or INACTIVE]FlexDeployRowNotFoundException
- if pProjectId
is not found or pPackageName
doesnt exist on projectFlexDeployValidationException
- if pPackageStatus
is invalidpublic void updatePackage(java.lang.Long pProjectId, java.lang.String pPackageName, java.lang.Long pStreamId, PollingResult pPollingResult)
addFilesToPackage
method.
This function will automatically populate files if new files are detected.
Files added to this package are always added to the end of the list.pProjectId
- Parent project id of the packagepPackageName
- Name of the packagepStreamId
- Stream to use when populating files if new files are foundpPollingResult
- PollingResult object to use for finding differencesFlexDeployRowNotFoundException
- if pProjectId
is not found or pPackageName
doesnt exist on projectFlexDeployValidationException
- if project other than SCM Type GIT is invalid.BitbucketFunctions.getChangeLogs(java.lang.Object, java.lang.String, java.lang.String)
,
GithubFunctions.getChangeLogs(java.lang.Object)
public void updatePackage(java.lang.Long pProjectId, java.lang.String pPackageName, java.lang.Long pStreamId, PollingResult pPollingResult, boolean pSortFiles)
addFilesToPackage
method.
This function will automatically populate files if new files are detected.
The files in this package can optionally be sorted by their project files sequence number.pProjectId
- Parent project id of the packagepPackageName
- Name of the packagepStreamId
- Stream to use when populating files if new files are foundpPollingResult
- PollingResult object to use for finding differencespSortFiles
- Sort package files after updateFlexDeployRowNotFoundException
- if pProjectId
is not found or pPackageName
doesnt exist on projectFlexDeployValidationException
- if project other than SCM Type GIT is invalid.BitbucketFunctions.getChangeLogs(java.lang.Object, java.lang.String, java.lang.String)
,
GithubFunctions.getChangeLogs(java.lang.Object)
public java.lang.Long createPackage(java.lang.Long pProjectId, java.lang.String pPackageName, java.lang.String pDescription, java.util.List<java.lang.String> pFiles)
pProjectId
- Parent project id to create package under.pPackageName
- Package name to use.pDescription
- Description to give the package.pFiles
- List of files to add to the package. File paths should be as they appear in the File Catalog of the project.public java.lang.Long createDynamicPackage(java.lang.Long pProjectId, java.lang.String pPackageName, java.lang.String pDescription, java.lang.String pIncludePath, java.lang.String pExcludePath)
pProjectId
- Parent project id to create package under.pPackageName
- Package name to use.pDescription
- Description to give the package.pIncludePath
- files to be included in the package.pExcludePath
- files to be excluded in the package.public java.lang.Long createPackage(java.lang.Long pProjectId, java.lang.String pPackageName, java.lang.String pDescription, java.lang.Long pStreamId, PollingResult pPollingResult)
pProjectId
- Parent project id of the packagepPackageName
- Name of the packagepDescription
- Description to give the package.pPollingResult
- PollingResult object to use for finding differencesFlexDeployRowNotFoundException
- if pProjectId
is not found or pPackageName
doesnt exist on projectFlexDeployValidationException
- if project pProjectId
is invalid,BitbucketFunctions.getChangeLogs(java.lang.Object, java.lang.String, java.lang.String)
,
GithubFunctions.getChangeLogs(java.lang.Object)
public void deletePackage(java.lang.Long pProjectId, java.lang.String pPackageName)
pProjectId
- Parent project id package is under.pPackageName
- Name of package to delete.FlexDeployOptimisticLockException
- if another user updated or deleted row.public java.lang.Long buildPackage(java.lang.Long pStreamId, ProjectPackagePojo projectPackage)
PollingResult variant
pStreamId
- Stream to use when building package. See findStreamId
.projectPackage
- Wrapper object containing project id and package name to build.FlexDeployRowNotFoundException
- if pStreamId
not found in project.
if no row found for project.
if default build environment not foundFlexDeployValidationException
- if requested project is a utility project.
if requested project is not active.
if no build workflow or target group mapped for the project.public java.lang.Long buildPackage(java.lang.Long pStreamId, ProjectPackagePojo projectPackage, BuildOptions pBuildOptions)
PollingResult variant
pStreamId
- Stream to use when building package. See findStreamId
.projectPackage
- Wrapper object containing project id and package name to build.pBuildOptions
- Additional build object where optional options can be set.FlexDeployRowNotFoundException
- if pStreamId
not found in project.
if no row found for project.
if default build environment not foundFlexDeployValidationException
- if requested project is a utility project.
if requested project is not active.
if no build workflow or target group mapped for the project.public java.lang.Long buildPackage(java.lang.Long pStreamId, ProjectPackagePojo projectPackage, PollingResult pPollingResult, BuildOptions pBuildOptions)
pStreamId
- Stream to use when building package. See findStreamId
.projectPackage
- Wrapper object containing project id and package name to build.pPollingResult
- PollingResult object containing change logs and committer information.pBuildOptions
- Additional build object where optional options can be set.FlexDeployRowNotFoundException
- if pStreamId
not found in project.
if no row found for project.
if default build environment not foundFlexDeployValidationException
- if requested project is a utility project.
if requested project is not active.
if no build workflow or target group mapped for the project.BitbucketFunctions.getChangeLogs(java.lang.Object, java.lang.String, java.lang.String)
,
GithubFunctions.getChangeLogs(java.lang.Object)
public java.lang.Long buildProject(java.lang.Long pStreamId, java.lang.Long pProjectId)
PollingResult variant
pStreamId
- Stream to use when building project. See findStreamId
.pProjectId
- Project id to build.FlexDeployRowNotFoundException
- if pStreamId
not found in project.
if no row found for project.
if default build environment not foundFlexDeployValidationException
- if requested project is a utility project.
if requested project is not active.
if no build workflow or target group mapped for the project.public java.lang.Long buildProject(java.lang.Long pStreamId, java.lang.Long pProjectId, BuildOptions pBuildOptions)
PollingResult variant
pStreamId
- Stream to use when building project. See findStreamId
.pProjectId
- Project id to build.pBuildOptions
- Additional build object where optional options can be set.FlexDeployRowNotFoundException
- if pStreamId
not found in project.
if no row found for project.
if default build environment not foundFlexDeployValidationException
- if requested project is a utility project.
if requested project is not active.
if no build workflow or target group mapped for the project.public java.lang.Long buildProject(java.lang.Long pStreamId, java.lang.Long pProjectId, PollingResult pPollingResult, BuildOptions pBuildOptions)
pStreamId
- Stream to use when building project. See findStreamId
.pProjectId
- Project id to build.pPollingResult
- PollingResult object containing change logs and committer information.pBuildOptions
- Additional build object where optional options can be set.Long
WorkflowRequest idFlexDeployRowNotFoundException
- if pStreamId
not found in project.
if no row found for project.
if default build environment not foundFlexDeployValidationException
- if requested project is a utility project.
if requested project is not active.
if no build workflow or target group mapped for the project.BitbucketFunctions.getChangeLogs(java.lang.Object, java.lang.String, java.lang.String)
,
GithubFunctions.getChangeLogs(java.lang.Object)
public java.lang.Long deployPackage(java.lang.Long pProjectId, java.lang.String pPackageName, java.lang.String pEnvironmentCode, DeployOptions pDeployOptions)
pProjectId
- Project id to deploy.pPackageName
- Name of packagepEnvironmentCode
- Code of the enviornment.pDeployOptions
- Additional deploy object where optional options can be set.FlexDeployRowNotFoundException
- if no row found for pProjectId
.
if no row found for pEnvironmentCode
.
if no row found for pPackageName
.FlexDeployValidationException
- if pEnvironmentCode
is missing.
if requested project is a utility project.
if requested project is not active.
if no deploy workflow or target group mapped for the project.
if package name given for standard project.public java.lang.Long deployProject(java.lang.Long pProjectId, java.lang.String pEnvironmentCode, DeployOptions pDeployOptions)
pProjectId
- Project id to deploy.pEnvironmentCode
- Code of the enviornment.pDeployOptions
- Additional deploy object where optional options can be set.FlexDeployRowNotFoundException
- if no row found for pProjectId
.
if no row found for pEnvironmentCode
.FlexDeployValidationException
- if pEnvironmentCode
is missing.
if requested project is a utility project.
if requested project is not active.
if no deploy workflow or target group mapped for the project.public java.util.Set<java.lang.Long> findProjectsForNewBranch(java.lang.String pRepositoryName)
pRepositoryName
- Git repository name with the change. Name is of the form (username/repo). e.g. toddmotto/public-apispublic java.util.Set<java.lang.Long> findProjectsForNewBranch(java.lang.String pRepositoryName, PollingResult pPollingResult)
findProjectsForNewBranch
.
This function currently only compares against Git repositories and is not compatible with other scm types.pRepositoryName
- Git repository name with the change. Name is of the form (username/repo). e.g. toddmotto/public-apispPollingResult
- PollingResult object for determining relevant projects.BitbucketFunctions.getChangeLogs(java.lang.Object, java.lang.String, java.lang.String)
,
GithubFunctions.getChangeLogs(java.lang.Object)
public java.util.Set<java.lang.Long> findProjectsForChange(java.lang.String pRepositoryName, java.lang.String pStreamName, PollingResult pPollingResult)
pRepositoryName
- Git repository name with the change. Name is of the form (username/repo). e.g. toddmotto/public-apispStreamName
- Stream/branch name for which the change occurred. e.g. 'master'pPollingResult
- PollingResult object for determining relevant projects.BitbucketFunctions.getChangeLogs(java.lang.Object, java.lang.String, java.lang.String)
,
GithubFunctions.getChangeLogs(java.lang.Object)
public java.util.Set<java.lang.Long> findProjectsForChange(java.lang.String pRepositoryName, java.lang.String pStreamName, java.util.List<java.lang.String> pChangedFiles)
pRepositoryName
- Git repository name with the change. Name is of the form (username/repo). e.g. toddmotto/public-apispStreamName
- Stream/branch name for which the change occurred. e.g. 'master'pChangedFiles
- List of changed files from a push event. If no files are passed then all projects using given repository will be returned.BitbucketFunctions.getChangeLogs(java.lang.Object, java.lang.String, java.lang.String)
,
GithubFunctions.getChangeLogs(java.lang.Object)
public java.util.Set<ProjectPackagePojo> findPackagesForChange(java.lang.String pRepositoryName, java.lang.String pStreamName, PollingResult pPollingResult)
pRepositoryName
- Git repository name with the change. Name is of the form (username/repo). e.g. toddmotto/public-apispStreamName
- Stream/branch name for which the change occurred. e.g. 'master'pPollingResult
- PollingResult object for determining relevant packages.BitbucketFunctions.getChangeLogs(java.lang.Object, java.lang.String, java.lang.String)
,
GithubFunctions.getChangeLogs(java.lang.Object)
public java.util.Set<ProjectPackagePojo> findPackagesForChange(java.lang.String pRepositoryName, java.lang.String pStreamName, java.util.List<java.lang.String> pChangedFiles)
pRepositoryName
- Git repository name with the change. Name is of the form (username/repo). e.g. toddmotto/public-apispStreamName
- Stream/branch name for which the change occurred. e.g. 'master'pChangedFiles
- List of changed files from a push event. If no files are passed then all packages using given repository will be returned.BitbucketFunctions.getChangeLogs(java.lang.Object, java.lang.String, java.lang.String)
,
GithubFunctions.getChangeLogs(java.lang.Object)
public java.lang.Long findProjectId(java.lang.String pProjectName)
pProjectName
- Case sensitive project name to search byFlexDeployRowNotFoundException
- if no row found for pProjectName
.public ProjectDataObject findProjectWithId(java.lang.Long pProjectId)
pProjectId-
- Id of Project to find.FlexDeployRowNotFoundException
- if no row found for pProjectId
.public java.util.List<ProjectDataObject> findProjectsWithName(java.lang.String pProjectName)
pProjectName
- Case insensitive project name to search bypublic <any> searchProjects(ProjectDataObject pCriteriaObject, java.lang.Integer pLimit, java.lang.Integer pOffset)
pCriteriaObject
- pLimit
- pOffset
- public java.lang.Long createRelease(java.lang.String pReleaseName, java.lang.String pPipelineName, java.lang.String pDescription) throws FlexCheckedException
pReleaseName
- Name to give Release.pPipelineName
- Pipeline name to use for the Release.pDescription
- Optional description to give the Release.FlexDeployValidationException
- when creation of release gets failed.FlexCheckedException
public java.lang.Long createRelease(java.lang.String pReleaseName, java.lang.String pPipelineName, java.lang.String pDescription, java.lang.String pCronSchedule) throws FlexCheckedException
pReleaseName
- Name to give Release.pPipelineName
- Pipeline name to use for the Release.pDescription
- Optional description to give the Release.pCronSchedule
- Cron schedule to give the Release.FlexDeployValidationException
- when creation of release gets failed.FlexCheckedException
public void endRelease(java.lang.String pReleaseName) throws FlexCheckedException, FlexNotFoundException
pReleaseName
- Release name to end.FlexNotFoundException
- if Release is not foundFlexCheckedException
public void endRelease(java.lang.Long pReleaseId) throws FlexCheckedException, FlexNotFoundException
pReleaseId
- Release id to end.FlexNotFoundException
- if Release is not foundFlexCheckedException
public void pauseRelease(java.lang.String pReleaseName) throws FlexCheckedException, FlexNotFoundException
pReleaseName
- Release name to pause.FlexNotFoundException
- if Release is not foundFlexCheckedException
public void pauseRelease(java.lang.Long pReleaseId) throws FlexCheckedException, FlexNotFoundException
pReleaseId
- Release id to pause.FlexNotFoundException
- if Release is not foundFlexCheckedException
public void startRelease(java.lang.String pReleaseName) throws FlexCheckedException, FlexNotFoundException
pReleaseName
- Release name to start.FlexNotFoundException
- if Release is not foundFlexCheckedException
public void startRelease(java.lang.Long pReleaseId) throws FlexCheckedException, FlexNotFoundException
pReleaseId
- Release id to start.FlexNotFoundException
- if Release is not foundFlexCheckedException
public void addProjectsToRelease(java.lang.String pReleaseName, java.util.List<ReleaseProjectsPojo> pReleaseProjects) throws FlexCheckedException, FlexDeployRowNotFoundException
pReleaseName
- Release name to add projects to.pReleaseProjects
- List of ReleaseProjects to add.FlexCheckedException
FlexNotFoundException
- if Release is not foundFlexDeployRowNotFoundException
public void removeProjectsFromRelease(java.lang.String pReleaseName, java.util.List<ReleaseProjectsPojo> pReleaseProjects) throws FlexCheckedException, FlexDeployRowNotFoundException
pReleaseName
- Release name to remove projects from.pReleaseProjects
- List of ReleaseProjects to remove.FlexCheckedException
FlexNotFoundException
- if Release is not foundFlexDeployRowNotFoundException
public java.lang.Long createSnapshot(java.lang.Long pReleaseId) throws FlexCheckedException
pReleaseId
- Release to create the snapshot for.FlexDeployValidationException
- when failing to submit snapshot.FlexCheckedException
public java.lang.Long findBranchId(java.lang.Long pProjectId, java.lang.String pBranchName)
pProjectId
- Project id on which the branch belongs.pBranchName
- Name of the branch. e.g. 'feature/JIRA-12', 'master'.FlexDeployRowNotFoundException
- if no row found for pBranchName
for pProjectId
.public java.lang.Long createBranch(java.lang.Long pProjectId, java.lang.String pBranchName, java.lang.String pVersionSyntax)
pProjectId
- Project to create the branch on.pBranchName
- Branch name to create.pVersionSyntax
- Version Syntax to use for the branch. For example: "1.0.mybranch." + SequenceNumber. Note that this is a groovy script and literal strings should be enclosed in quotes.public java.lang.Long createBranch(java.lang.Long pProjectId, ProjectStreamPojo pBranch)
pProjectId
- Project to create the branch on.pBranch
- ProjectStreamDataObject object representing the branch to create.public java.lang.Long createBranch(java.lang.Long pProjectId, java.lang.String pBranchName)
pProjectId
- Project to create the branch on.pBranchName
- Branch name to create.FlexCheckedException
public void updateBranch(java.lang.Long pProjectId, java.lang.Long pBranchId, ProjectStreamPojo pBranch)
pProjectId
- Project to create the branch on.pBranchId
- Id of the branch to update.pBranch
- ProjectStreamPojo object representing the branch to update.FlexDeployRowNotFoundException
- if pBranchId
does not exist for pProjectId
.public void patchBranch(java.lang.Long pProjectId, java.lang.Long pBranchId, ProjectStreamDataObject pBranch)
pProjectId
- Project to create the branch on.pBranchId
- Id of the branch to update.pBranch
- ProjectStreamDataObject object representing the branch to update.FlexDeployRowNotFoundException
- if pBranchId
does not exist for pProjectId
.public void inactivateBranch(java.lang.Long pProjectId, java.lang.String pBranchName)
pProjectId
- pBranchName
- public void activateBranch(java.lang.Long pProjectId, java.lang.String pBranchName) throws FlexCheckedException
pProjectId
- project id for which the branch belongs.pBranchName
- Branch name to inactivate.FlexCheckedException
public void approveTask(java.lang.String pUsername, java.lang.String pTaskIdentifier, java.lang.String pNotes) throws FlexCheckedException, FlexNotFoundException
pUsername
- Username to approve the task as, the user passed here needs permission to approve otherwise an error will occur. User must be in local realm.pTaskIdentifier
- Task identifier to approve. This identifier is only available in the TaskCreated webhook payload and is not visible from the UI.pNotes
- Optional notes to assign to the approval.FlexNotFoundException
- If no task found for pTaskIdentifier
.FlexCheckedException.
FlexCheckedException
public void rejectTask(java.lang.String pUsername, java.lang.String pTaskIdentifier, java.lang.String pNotes) throws FlexCheckedException, FlexNotFoundException
pUsername
- Username to reject the task as, the user passed here needs permission to reject otherwise an error will occur. User must be in local realm.pTaskIdentifier
- Task identifier to approve. This identifier is only available in the TaskCreated webhook payload and is not visible from the UI.pNotes
- Optional notes to assign to the rejected task.FlexNotFoundException
- If no task found forpTaskIdentifier
.FlexCheckedException
public AccountInstancePojo findIntegrationInstance(java.lang.String pIntegrationInstanceCode, java.lang.String pType) throws FlexNotFoundException
pIntegrationInstanceCode
- Code for the integration instace.pType
- Type of the integration instance. {SCM, TEST, ITS, CMS, CLOUD, ARTIFACTREPO, CISERVER, ANALYSISTOOL, MESSAGING, OTHERTOOLS}.FlexNotFoundException
- if no integration instance found for passed code.public java.lang.Long createSCMInstance(java.lang.String pSCMInstanceName, java.lang.String pDescription, java.lang.Boolean pIsActive, java.lang.String pInstanceCode, java.util.List<PropertyValuePojo> pProperties, java.lang.String pSCMType)
pSCMInstanceName
- - The unique name of the SCM instance.pDescription
- - The description of the SCM instance.pIsActive
- - Whether or not the SCM instance is active.pInstanceCode
- - The code of the SCM instance.pProperties
- - A list of objects containing the required property values for the specified SCM type. The objects must contain propertyName field as well as either propertyValue if the value is not encrypted or credentialId if the value is encrypted.pSCMType
- - The SCM type of the instance. Must be a valid source control management system. Possible values are SVN, GIT, CVS, TFVC, PERF, PVCS, FILE, or NONE.public java.lang.Long createSCMInstance(SCMInstancePojo pSCMInstancePojo)
pSCMInstancePojo
- - The object containing all of the required data for the SCM instance.public java.lang.Long updateSCMInstance(java.lang.Long pSCMInstanceId, java.lang.String pSCMInstanceName, java.lang.String pDescription, java.lang.Boolean pIsActive, java.lang.String pInstanceCode, java.util.List<PropertyValuePojo> pProperties, java.lang.String pSCMType)
pSCMInstanceId
- - The Id of the instance to be updated.pSCMInstanceName
- - The unique name of the SCM instance.pDescription
- - The description of the SCM instance.pIsActive
- - Whether or not the SCM instance is active.",pInstanceCode
- - The code of the SCM instance.pProperties
- - A list of objects containing the required property values for the specified SCM type. The objects must contain propertyName field as well as either propertyValue if the value is not encrypted or credentialId if the value is encrypted.pSCMType
- - The SCM type of the instance. Must be a valid source control management system. Possible values are SVN, GIT, CVS, TFVC, PERF, PVCS, FILE, or NONE.public java.lang.Long updateSCMInstance(java.lang.Long pSCMInstanceId, SCMInstancePojo pSCMInstancePojo)
pSCMInstanceId
- - The Id of the instance to be updated.pSCMInstancePojo
- - Object containing all of the required data for the SCM instance.public AccountInstancePojo getIntegrationInstance(java.lang.Long pIntegrationInstanceId, java.lang.String pType)
pIntegrationInstanceId
- Integration Instance id.pType
- Type of the integration instance. {SCM, TEST, ITS, CMS, CLOUD, ARTIFACTREPO, CISERVER, ANALYSISTOOL, MESSAGING, OTHERTOOLS}.FlexDeployRowNotFoundException
- if no integration instance found for pIntegrationInstanceId
.public CMSInstancePojo findCMSInstance(java.lang.String pCMSInstanceCode)
pCMSInstanceCode
- Code of the instance you wish to retrieve.FlexDeployRowNotFoundException
- if no instance found for pCMSInstanceCode
.public CMSInstancePojo getCMSInstance(java.lang.Long pCMSInstanceId)
pCMSInstanceId
- Id of the instance you wish to retrieve.FlexDeployRowNotFoundException
- if no instance found for pCMSInstanceId
.public ChangeManagementSystem getChangeManagementSystemByInstanceCode(java.lang.String pInstanceCode)
pInstanceCode
- Instance code to filter by.FlexDeployRowNotFoundException
- If no CMS instance was found given pCode
.public ChangeManagementSystem getChangeManagementSystemByInstanceName(java.lang.String pInstanceName)
pInstanceName
- Instance name to filter by.FlexDeployRowNotFoundException
- If no CMS instance was found givenpName
.public CMSObject createIncidentForWorklowRequest(java.lang.Long pWorkflowRequestId, java.util.Map<java.lang.String,java.io.Serializable> pIncidentFields, java.lang.String pCMSInstanceCode, java.lang.String pCMSInstanceName)
pWorkflowRequestId
- Associated workflow request id .pIncidentFields
- Payload fields populated with key value to create an Incident.pCode
- Instance code to filter by.pName
- Instance name to filter by.public CMSObject createIncidentByWorkflowType(java.lang.Long pWorkflowRequestId, java.util.Map<java.lang.String,java.io.Serializable> pIncidentFields)
pWorkflowRequestId
- Associated workflow request id .pIncidentFields
- Payload fields populated with key value to create an Incident.public ChangeManagementSystem getChangeManagementSystemByInstanceId(java.lang.Long pCMSInstanceId)
pCMSInstanceId
- Instance id of the implementation you wish to retrieve.FlexDeployRowNotFoundException
- If no instance found for pCMSInstanceId
.public java.util.List<ReleaseProjectDetailsPojo> getReleaseProjectInfo(java.lang.Long pReleaseDefId)
pReleaseDefId
- Release Definition Id.public StageExecutionInformationPOJO getPipelineStageExecutionInfo(java.lang.Long pStageExecId)
pStageExecId
- Pipeline Stage Execution Id.public StepProjectsRequestPojo getPipelineStepProjectsExecution(java.lang.Long pStageExecId, java.lang.Long pStepId)
pStageExecId
- The pipeline stage execution idpStepid
- The pipeline stage step id to get results for.public StepProjectsRequestPojo getPipelineStepProjectsExecution(java.lang.Long pStageExecId, java.lang.String pStepName)
pStageExecId
- The pipeline stage execution idpStepName
- The pipeline stage step name to get results for.public java.util.List<FDUser> getUsersFromGroupId(java.lang.Long pGroupId)
pGroupId
- FlexDeploy Group id to use.public java.util.List<FDUser> getUsersFromRoleId(java.lang.Long pRoleId)
pRoleId
- Pipeline role id.public java.util.List<EnvironmentPojo> findEnvironment(java.lang.String pEnvironmentCode)
pEnvironmentCode
- Code of the enviornment.FlexDeployRowNotFoundException
- If no environment is found for the given codepublic EnvironmentPojo getEnvironment(java.lang.Long pEnvironmentId)
pEnvironmentId
- Id of the enviornment.FlexDeployRowNotFoundException
- If no environment is found for the given id.public java.util.List<InstancePojo> findInstance(java.lang.String pInstanceCode)
pInstanceCode
- Code of the instance.FlexDeployRowNotFoundException
- If no instance is found for the given code.public InstancePojo getInstance(java.lang.Long pInstanceId)
pInstanceId
- Id of the instance.FlexDeployRowNotFoundException
- If no instance is found for the given id.public void downloadLogs(java.lang.Long pWorkflowExecutionId, java.lang.String pDestinationPath)
pWorkflowExecutionId
- Workflow Execution Id to capture logs for.pDestinationPath
- The path where the log files folder will be saved.FlexDeployValidationException
- if pDestinationPath
is not provided.public java.util.Map<java.lang.Long,java.io.InputStream> getPluginLogInputStreams(java.lang.Long pWorkflowExecutionId)
pWorkflowExecutionId
- Workflow Execution Id to capture logs for.public java.util.Map<java.lang.Long,java.io.InputStream> getPluginLogInputStreams(java.lang.Long pWorkflowExecutionId, java.lang.Boolean pOnlyError)
pWorkflowExecutionId
- Workflow Execution Id to capture logs for.pOnlyError
- Return only the failed plugin log input stream, otherwise all plugin logs for the workflow will be returned.FlexCheckedException
public PackageDetailsResponsePojo getPackage(java.lang.Long pProjectId, java.lang.String pPackageName)
pProjectId
- Parent project id package is under.pPackageName
- Name of packageFlexDeployRowNotFoundException
- If no project package found for pProjectId
and pPackageName
.public java.util.Collection<PluginLogPojo> getPluginLogs(java.lang.Long pWorkflowExecutionId)
pWorkflowExecutionId
- Workflow Execution Id to capture logs for.public java.io.InputStream getSnapshotCommitDetailInputStreams(java.lang.Long pSnapshotId)
pSnapshotId
- - Id of the snapshot which details will be returnedpublic void downloadSnapshotCommitDetails(java.lang.Long pSnapshotId, java.lang.String pDestinationPath)
pSnapshotId
- - Id of the snapshot whose commit details will be returned.pDestinationPath
- - Path where the csv will be downloaded.FlexDeployValidationException
- if pDestinationPath
is not provided.public java.util.List<ReleaseSnapshotCommitDetailsPojo> getSnapshotCommitDetails(java.lang.Long pSnapshotId)
pSnapshotId
- - Id of the snapshot whose commit details will be returned.public java.lang.String getFlexDeployBaseUrl()
public java.lang.String getGroovyKey()
getGroovyKey
in class BaseFunctions
public void cleanup()
cleanup
in class BaseFunctions
public java.lang.Long executeUtility(java.lang.Long pProjectId, java.lang.String pEnvironmentCode)
pProjectId
- Project id to execute.pEnvironmentCode
- Environment code to use for the utility request.FlexDeployValidationException
- if pEnvironmentCode
is not provided.public java.lang.Long executeUtility(java.lang.Long pProjectId, java.lang.String pEnvironmentCode, ExecuteOptions pExecuteOptions)
pProjectId
- Project id to execute.pEnvironmentCode
- Environment code to use for the utility request.pInstanceCode
- Instance code to use for the utility request.pExecuteOptions
- Execute options contains list of instances to execute on, with inputs and flexfieldsFlexDeployValidationException
- if pEnvironmentCode
is not provided.public java.lang.Long findFolderId(java.lang.String pFolderName)
pFolderName
- Case sensitive folder name to search byFlexDeployRowNotFoundException
- If folder name is not found in FlexDeploypublic FolderDataObject findFolderWithId(java.lang.Long pFolderId)
pFolderId
- public java.util.List<FolderDataObject> findFoldersWithName(java.lang.String pFolderName)
pFolderName
- Case insensitive project name to search bypublic <any> searchFolders(FolderDataObject pCriteriaObject, java.lang.Integer pLimit, java.lang.Integer pOffset)
pCriteriaObject
- pLimit
- pOffset
- public <any> searchBranches(ProjectStreamDataObject pCriteriaObject, java.lang.Integer pLimit, java.lang.Integer pOffset)
pCriteriaObject
- pLimit
- pOffset
- public FdUserDataObject getUser(java.lang.String pUsername)
pUsername
- - Username of the user to retrieve.public java.lang.Long getCurrentlyDeployedVersionId(java.lang.Long pProjectId, java.lang.Long pEnvironmentId, java.lang.Long pInstanceId)
pProjectId
- Project Id of the project to retrieve.pEnvironmentId
- - Id of the enviornment.pInstanceId
- - Id of the instance.public java.lang.Long getCurrentlyDeployedVersionId(java.lang.Long pProjectId, java.lang.Long pEnvironmentId, java.lang.Long pInstanceId, java.lang.String pPackageName)
pProjectId
- Project Id of the project to retrieve.pEnvironmentId
- - Id of the enviornment.pInstanceId
- - Id of the instance.pPackageName
- - Name of the package.FlexDeployValidationException
- if pPackageName
is not provided.public java.lang.Long getPreviouslyDeployedVersionId(java.lang.Long pProjectId, java.lang.Long pEnvironmentId, java.lang.Long pInstanceId)
pProjectId
- Project Id of the project to retrieve.pEnvironmentId
- - Id of the enviornment.pInstanceId
- - Id of the instance.public java.lang.Long getPreviouslyDeployedVersionId(java.lang.Long pProjectId, java.lang.Long pEnvironmentId, java.lang.Long pInstanceId, java.lang.String pPackageName)
pProjectId
- Project Id of the project to retrieve.pEnvironmentId
- - Id of the enviornment.pInstanceId
- - Id of the instance.pPackageName
- - Name of the package.FlexDeployValidationException
- if pPackageName
is not provided.public java.lang.Long updateReleaseProperty(java.lang.Long pReleaseDefId, java.lang.String pPropertyKeyCode, java.io.Serializable pNewValue)
pReleaseDefId
- - Id of the release that has the property to be updated.pPropertyKeyCode
- - The code of the property that is to be updated.pNewValue
- - The value that the property will be updated to.public java.lang.Long updateSnapshotVariable(java.lang.Long pSnapshotId, java.lang.String pVariableCode, java.io.Serializable pNewValue) throws FlexCheckedException
pSnapshotId
- - The id of the snapshot that has the variable to be updated.pVariableCode
- - The code of the variable that is to be updated.pNewValue
- - The value taht the property will be updated to.FlexCheckedException
public void completeManualStepByTaskId(java.lang.String pUsername, java.lang.Long pTaskId) throws FlexCheckedException, FlexNotFoundException
pUsername
- - Username to complete the task as.pTaskId
- - Task ID of the human task/manual step to complete.FlexNotFoundException
- If no task is found for passed Id.FlexCheckedException
- All other exceptions.public void completeManualStepBySnapshotId(java.lang.String pUsername, java.lang.Long pSnapshotId) throws FlexCheckedException, FlexNotFoundException
pUsername
- - Username to complete the task as.pSnapshotId
- - Snapshot Id which has a manual step waiting to be completed.FlexNotFoundException
- If no task is found for passed Id.FlexCheckedException
- All other exceptions.public java.lang.Long createStream(java.lang.Long pProjectId, ProjectStreamPojo pStream)
pProjectId
- Project to create the stream on.pStream
- ProjectStreamDataObject object representing the stream to create.public java.lang.Long createStream(java.lang.Long pProjectId, java.lang.String pStreamName)
pProjectId
- Project to create the stream on.pStreamName
- Stream name to create.FlexCheckedException
public java.lang.Long createStream(java.lang.Long pProjectId, java.lang.String pStreamName, java.lang.String pVersionSyntax)
pProjectId
- Project to create the stream on.pStreamName
- Stream name to create.pVersionSyntax
- Version Syntax to use for the stream. For example: "1.0.mybranch." + SequenceNumber. Note that this is a groovy script and literal strings should be enclosed in quotes.public java.lang.Long findStreamId(java.lang.Long pProjectId, java.lang.String pStreamName)
pProjectId
- Project id on which the stream belongs.pStreamName
- Name of the stream. e.g. 'feature/JIRA-12', 'master'.FlexDeployRowNotFoundException
- if no row found for pStreamName
for pProjectId
.public void inactivateStream(java.lang.Long pProjectId, java.lang.String pStreamName)
pProjectId
- pStreamName
- public void activateStream(java.lang.Long pProjectId, java.lang.String pStreamName) throws FlexCheckedException
pProjectId
- project id for which the stream belongs.pStreamName
- Stream name to inactivate.FlexCheckedException
public void patchStream(java.lang.Long pProjectId, java.lang.Long pStreamId, ProjectStreamDataObject pStream)
pProjectId
- Project to create the stream on.pStreamId
- Id of the stream to update.pStream
- ProjectStreamDataObject object representing the stream to update.FlexDeployRowNotFoundException
- if pStreamId
does not exist for pProjectId
.public void updateStream(java.lang.Long pProjectId, java.lang.Long pStreamId, ProjectStreamPojo pStream)
pProjectId
- Project to create the stream on.pStreamId
- Id of the stream to update.pStream
- ProjectStreamPojo object representing the stream to update.FlexDeployRowNotFoundException
- if pStreamId
does not exist for pProjectId
.public void updateScanResult(java.lang.Long pProjectId, java.lang.String pScanId, ScanResultPojo pScanResultPojo, boolean pIsStatusSuccess)
pProjectId
- Project to update the scan results.pScanId
- Id of the scan result to update.pScanResultPojo
- ScanResultPojo object representing the scanResult to update.pIsStatusSuccess
- is scan status success or not.public ScanResultPojo getScanResultForSonarqube(java.lang.String pBaseUrl, java.lang.String pProjectKey) throws FlexCheckedException
pBaseUrl
- pProjectKey
- FlexCheckedException
public IssueTrackingSystem getIssueTrackingSystemByInstanceCode(java.lang.String pInstanceCode)
pInstanceCode
- Instance code of the implementation you wish to retrieve.FlexDeployRowNotFoundException
- If no instance found for pInstanceCode
.public IssueTrackingSystem getIssueTrackingSystemByInstanceName(java.lang.String pInstanceName)
pInstanceName
- Instance Name of the implementation you wish to retrieve.FlexDeployRowNotFoundException
- If no instance found for pInstanceName
.public IssueTrackingSystem getIssueTrackingSystemByInstanceId(java.lang.Long pITSInstanceId)
pITSInstanceId
- Instance id of the implementation you wish to retrieve.FlexDeployRowNotFoundException
- If no instance found for pITSInstanceId
.public java.lang.Long getMatchingProjectObjectId(java.lang.Long pProjectId, java.lang.String pFile)
pProjectId
- pFile
- public <any> searchProjectPackages(ProjectPackageDataObject pCriteriaObject, java.lang.Integer pLimit, java.lang.Integer pOffset)
pCriteriaObject
- pLimit
- pOffset
-