中文 English

GitLab CI YML Configuration Guide (Official Documentation Translation)

Published: 2023-04-02

Important Built-in Variables

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.

GitLab CI YML Configuration Guide (Official Documentation Translation)

https://github.com/szyhf/gitlab-study/blob/master/gitlab-ci.yml%E9%85%8D%E7%BD%AE%E8%AF%B4%E6%98%8E.md

gradle init Command

https://docs.gradle.org/current/samples/sample_building_java_applications_multi_project.html

Detailed Explanation of GitLab CI Pipeline Configuration File .gitlab-ci.yml

https://meigit.readthedocs.io/en/latest/gitlab_ci_.gitlab-ci.yml_detail.html

More About Variables

https://docs.gitlab.com/ce/ci/variables/README.html

https://docs.gitlab.com/ee/ci/variables/predefined_variables.html