CI_COMMIT_REF_NAME: The branch or tag name for which project is built.
CI_CONFIG_PATH: The path to the CI/CD configuration file. Defaults to .gitlab-ci.yml. Read-only inside a running pipeline.
CI_PROJECT_PATH: The project namespace with the project name included.
CI_BUILDS_DIR: The top-level directory where builds are executed.
CI_PROJECT_DIR: The full path the repository is cloned to, and where the job runs from. If the GitLab Runner builds_dir parameter is set, this variable is set relative to the value of builds_dir. For more information, see the Advanced GitLab Runner configuration.


gradle init 命令

GitLab CI流水线配置文件.gitlab-ci.yml详解