Class GitlabFunctions


public class GitlabFunctions extends GitProviderFunctions
Utility functions used to get information from a GitLab payload
Since:
5.3.0.3
  • Constructor Details

    • GitlabFunctions

      public GitlabFunctions(LogFunctions pFLOG)
  • Method Details

    • getChangeLogs

      public PollingResult getChangeLogs(Object pPayload) throws FlexCheckedException
      Finds FlexDeploy change logs from a Gitlab payload. Return object can be passed to other FlexDeploy functions to improve performance.
      Parameters:
      pPayload - Json payload from Gitlab 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
      Finds FlexDeploy change logs from a Gitlab payload. Return object can be passed to other FlexDeploy functions to improve performance.
      Parameters:
      pPayload - Json payload from Gitlab push event. This MUST be the push event payload.
      pIgnoreTargetBranchMerge - 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) throws FlexCheckedException
      Build Packages using the given projectId and/or packageName in the query parameters or finding packages to build from the payload.
      Parameters:
      pPayload - GitLab push payload. MUST be the push payload.
      pQueryParameters - Query Parameters from GitLab push event. This must be the push event payload.
      pCreateStreams - Should streams be created if not found on the projects?
      Throws:
      FlexCheckedException
    • buildProjects

      public void buildProjects(Object pPayload, Map<String,String> pQueryParameters, Boolean pCreateStreams) throws FlexCheckedException
      Build Projects using the given projectId in the query parameters or finding projects to build from the payload.
      Parameters:
      pPayload - GitLab push payload. MUST be the push payload.
      pQueryParameters - Query Parameters from GitLab push event. This must be the push event payload.
      pCreateStreams - Should streams be created if not found on the projects?
      Throws:
      FlexCheckedException
    • getGroovyKey

      public String getGroovyKey()
      Specified by:
      getGroovyKey in class BaseFunctions