Interface SourceCodeManagement.Builder

Enclosing interface:
SourceCodeManagement

public static interface SourceCodeManagement.Builder
A builder for SourceCodeManagement instances.
Since:
2.0.0
  • Method Details

    • connection

      @NotNull @NotNull SourceCodeManagement.Builder connection(@NotNull @NotNull String connection)
      Set a read-only access to the project's repository.

      This must be in a scm:[provider]:[provider-specific arguments] format.

      Parameters:
      connection - the read-only project repository
      Returns:
      this builder
      Since:
      2.0.0
    • developerConnection

      @NotNull @NotNull SourceCodeManagement.Builder developerConnection(@NotNull @NotNull String developerConnection)
      Set a read-write access to the project's repository.

      This must be in a scm:[provider]:[provider-specific arguments] format.

      Parameters:
      developerConnection - the read-write project repository
      Returns:
      this builder
      Since:
      2.0.0
    • url

      @NotNull @NotNull SourceCodeManagement.Builder url(@NotNull @NotNull String url)
      Get a web URL to view this project's repository.
      Parameters:
      url - the project's SCM web URL
      Returns:
      this builder
      Since:
      2.0.0
    • build

      @NotNull @NotNull SourceCodeManagement build()
      Creates a new SourceCodeManagement instance.

      The connection(String), developerConnection(String), and url(String) properties must be set.

      Returns:
      a new SourceCodeManagement instance
      Since:
      2.0.0