pcimcioch.gitlabci.dsl.DefaultEnvironment.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gitlab-ci-kotlin-dsl Show documentation
Show all versions of gitlab-ci-kotlin-dsl Show documentation
Library providing Kotlin DSL to configure GitlabCI file
package pcimcioch.gitlabci.dsl
enum class DefaultEnvironment {
ARTIFACT_DOWNLOAD_ATTEMPTS,
CHAT_CHANNEL,
CHAT_INPUT,
CI,
CI_API_V4_URL,
CI_BUILDS_DIR,
CI_COMMIT_BEFORE_SHA,
CI_COMMIT_DESCRIPTION,
CI_COMMIT_MESSAGE,
CI_COMMIT_REF_NAME,
CI_COMMIT_REF_PROTECTED,
CI_COMMIT_REF_SLUG,
CI_COMMIT_SHA,
CI_COMMIT_SHORT_SHA,
CI_COMMIT_BRANCH,
CI_COMMIT_TAG,
CI_COMMIT_TITLE,
CI_CONCURRENT_ID,
CI_CONCURRENT_PROJECT_ID,
CI_CONFIG_PATH,
CI_DEBUG_TRACE,
CI_DEFAULT_BRANCH,
CI_DEPLOY_PASSWORD,
CI_DEPLOY_USER,
CI_DISPOSABLE_ENVIRONMENT,
CI_ENVIRONMENT_NAME,
CI_ENVIRONMENT_SLUG,
CI_ENVIRONMENT_URL,
CI_EXTERNAL_PULL_REQUEST_IID,
CI_EXTERNAL_PULL_REQUEST_SOURCE_BRANCH_NAME,
CI_EXTERNAL_PULL_REQUEST_SOURCE_BRANCH_SHA,
CI_EXTERNAL_PULL_REQUEST_TARGET_BRANCH_NAME,
CI_EXTERNAL_PULL_REQUEST_TARGET_BRANCH_SHA,
CI_JOB_ID,
CI_JOB_IMAGE,
CI_JOB_MANUAL,
CI_JOB_NAME,
CI_JOB_STAGE,
CI_JOB_TOKEN,
CI_JOB_URL,
CI_MERGE_REQUEST_ASSIGNEES,
CI_MERGE_REQUEST_CHANGED_PAGE_PATHS,
CI_MERGE_REQUEST_CHANGED_PAGE_URLS,
CI_MERGE_REQUEST_ID,
CI_MERGE_REQUEST_IID,
CI_MERGE_REQUEST_LABELS,
CI_MERGE_REQUEST_MILESTONE,
CI_MERGE_REQUEST_PROJECT_ID,
CI_MERGE_REQUEST_PROJECT_PATH,
CI_MERGE_REQUEST_PROJECT_URL,
CI_MERGE_REQUEST_REF_PATH,
CI_MERGE_REQUEST_SOURCE_BRANCH_NAME,
CI_MERGE_REQUEST_SOURCE_BRANCH_SHA,
CI_MERGE_REQUEST_SOURCE_PROJECT_ID,
CI_MERGE_REQUEST_SOURCE_PROJECT_PATH,
CI_MERGE_REQUEST_SOURCE_PROJECT_URL,
CI_MERGE_REQUEST_TARGET_BRANCH_NAME,
CI_MERGE_REQUEST_TARGET_BRANCH_SHA,
CI_MERGE_REQUEST_TITLE,
CI_MERGE_REQUEST_EVENT_TYPE,
CI_NODE_INDEX,
CI_NODE_TOTAL,
CI_PAGES_DOMAIN,
CI_PAGES_URL,
CI_PIPELINE_ID,
CI_PIPELINE_IID,
CI_PIPELINE_SOURCE,
CI_PIPELINE_TRIGGERED,
CI_PIPELINE_URL,
CI_PROJECT_DIR,
CI_PROJECT_ID,
CI_PROJECT_NAME,
CI_PROJECT_NAMESPACE,
CI_PROJECT_PATH,
CI_PROJECT_PATH_SLUG,
CI_PROJECT_REPOSITORY_LANGUAGES,
CI_PROJECT_TITLE,
CI_PROJECT_URL,
CI_PROJECT_VISIBILITY,
CI_REGISTRY,
CI_REGISTRY_IMAGE,
CI_REGISTRY_PASSWORD,
CI_REGISTRY_USER,
CI_REPOSITORY_URL,
CI_RUNNER_DESCRIPTION,
CI_RUNNER_EXECUTABLE_ARCH,
CI_RUNNER_ID,
CI_RUNNER_REVISION,
CI_RUNNER_SHORT_TOKEN,
CI_RUNNER_TAGS,
CI_RUNNER_VERSION,
CI_SERVER,
CI_SERVER_URL,
CI_SERVER_HOST,
CI_SERVER_PORT,
CI_SERVER_PROTOCOL,
CI_SERVER_NAME,
CI_SERVER_REVISION,
CI_SERVER_VERSION,
CI_SERVER_VERSION_MAJOR,
CI_SERVER_VERSION_MINOR,
CI_SERVER_VERSION_PATCH,
CI_SHARED_ENVIRONMENT,
GET_SOURCES_ATTEMPTS,
GITLAB_CI,
GITLAB_FEATURES,
GITLAB_USER_EMAIL,
GITLAB_USER_ID,
GITLAB_USER_LOGIN,
GITLAB_USER_NAM,
RESTORE_CACHE_ATTEMPTS;
fun unix() = "$" + toString()
fun win() = "%" + toString() + "%"
fun powershell() = "\$env:" + toString()
}