Class GitLabHelper

java.lang.Object
io.jenkins.plugins.gitlabbranchsource.helpers.GitLabHelper

public class GitLabHelper extends Object
  • Constructor Details

    • GitLabHelper

      public GitLabHelper()
  • Method Details

    • apiBuilder

      public static org.gitlab4j.api.GitLabApi apiBuilder(AccessControlled context, String serverName)
    • getProxyConfig

      public static Map<String,Object> getProxyConfig(String serverUrl)
    • getServerUrlFromName

      @NonNull public static String getServerUrlFromName(String serverName)
    • getServerUrl

      @NonNull public static String getServerUrl(GitLabServer server)
    • getPrivateTokenAsPlainText

      public static String getPrivateTokenAsPlainText(com.cloudbees.plugins.credentials.common.StandardCredentials credentials)
    • getUriTemplateFromServer

      public static com.damnhandy.uri.template.UriTemplateBuilder getUriTemplateFromServer(String server)
    • projectUriTemplate

      public static com.damnhandy.uri.template.UriTemplate projectUriTemplate(String serverNameOrUrl)
    • branchUriTemplate

      public static com.damnhandy.uri.template.UriTemplate branchUriTemplate(String serverNameOrUrl)
    • mergeRequestUriTemplate

      public static com.damnhandy.uri.template.UriTemplate mergeRequestUriTemplate(String serverNameOrUrl)
    • tagUriTemplate

      public static com.damnhandy.uri.template.UriTemplate tagUriTemplate(String serverNameOrUrl)
    • commitUriTemplate

      public static com.damnhandy.uri.template.UriTemplate commitUriTemplate(String serverNameOrUrl)
    • splitPath

      public static String[] splitPath(String path)