name.remal.gitlab-ci

Plugin class: name.remal.gradle_plugins.plugins.ci.GitlabCIPlugin

plugins {
    id 'name.remal.gitlab-ci' version '1.0.178'
}
plugins {
    id("name.remal.gitlab-ci") version "1.0.178"
}

 

This plugin works only if GITLAB_CI environment variable equals to true.

The plugin applies name.remal.common-ci plugin.

 

The plugin sets ci extension values:

  • pipelineId to null
  • buildId to CI_PIPELINE_ID environment variable
  • stageName to CI_JOB_STAGE environment variable
  • jobName to CI_JOB_NAME environment variable

 

If name.remal.vcs-operations plugin is applied, this plugin:

  • Sets vcsOperations.overwriteCurrentBranch to CI_COMMIT_REF_NAME environment variable (only if CI_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 use GITLAB_USER_NAME or GITLAB_USER_LOGIN environment variables as commit author name and GITLAB_USER_EMAIL environment variable as commit author email.