name.remal.gitlab-ci
Plugin class: name.remal.gradle_plugins.plugins.ci.GitlabCIPlugin
plugins {
id 'name.remal.gitlab-ci' version '1.5.0'
}
plugins {
id("name.remal.gitlab-ci") version "1.5.0"
}
This plugin works only if GITLAB_CI
environment variable equals to true
.
The plugin applies name.remal.common-ci
plugin.
Current build is treated as executed on a CI server if GITLAB_CI
environment variable equals to true
.
The plugin sets ci
extension values:
pipelineId
tonull
buildId
toCI_PIPELINE_ID
environment variablestageName
toCI_JOB_STAGE
environment variablejobName
toCI_JOB_NAME
environment variable
If name.remal.vcs-operations
plugin is applied, this plugin:¶
- Sets
vcsOperations.overwriteCurrentBranch
toCI_COMMIT_BRANCH
environment variable if it's available, if it's not available then toCI_COMMIT_REF_NAME
environment variable (only ifCI_COMMIT_TAG
environment variable is empty) - Configures remote URI to
CI_REPOSITORY_URL
environment variable - Uses
SSH_PRIVATE_KEY_FILE
environment variable's content as remote authorization's SSH private key file path - Uses
SSH_PRIVATE_KEY
environment variable's content as remote authorization's SSH private key - Uses
SSH_PRIVATE_KEY_PASSWORD
environment variable's content as remote authorization's SSH private key password - Configures
vcsOperations.commitAuthor
to useGITLAB_USER_NAME
orGITLAB_USER_LOGIN
environment variables as commit author name andGITLAB_USER_EMAIL
environment variable as commit author email.