data class Builder
A builder to create a GitlabRepositorySettings object. In GitLab CI, the values are automatically set via environment variables. Otherwise you can set the following environment variables:
GITLAB_PROJECT_IDGITLAB_PERSONAL_ACCESS_TOKENGITLAB_URL (if not set, https://gitlab.com is used)
Builder(projectId: Int? = System.getenv("GITLAB_PROJECT_ID")?.toIntOrNull()
?: System.getenv("CI_PROJECT_ID")?.toIntOrNull(), gitlabUrl: String = System.getenv("GITLAB_URL")
?: System.getenv("CI_SERVER_HOST")?.let { "https://$it" }
?: DEFAULT_GITLAB_URL, gitlabApiUrl: String = System.getenv("GITLAB_API_URL")
?: System.getenv("CI_API_V4_URL")
?: "$gitlabUrl/api/v4", ciJobToken: String? = System.getenv("CI_JOB_TOKEN"), personalAccessToken: String? = System.getenv("GITLAB_PERSONAL_ACCESS_TOKEN"))
A builder to create a GitlabRepositorySettings object. In GitLab CI, the values are automatically set via environment variables. Otherwise you can set the following environment variables: |
var ciJobToken: String?
the token of the CI job |
|
var gitlabApiUrl: String
the base URL of the GitLab API (e.g. |
|
var gitlabUrl: String
the base URL (e.g. |
|
var personalAccessToken: String?
a token of a GitLab user that will be |
|
var projectId: Int?
the ID of the project on the GitLab server |
fun build(): GitlabRepositorySettings |