@@ -22,6 +22,44 @@ follow this standardized structure:
└── ...
```
## 🤖 Job definition
This file must have the same name that the job with the `yml` extension:
`<job_name>.yml`. It contains the Gitlab job configuration in `yaml` format.
!!! info
* Jobs of the hub uses the Gitlab CI/CD configuration format
* Jobs of the hub must specify a Docker image to be run in a container
* See [GitLab CI/CD pipeline configuration reference](https://docs.gitlab.com/ee/ci/yaml/)
Job definition usually contains the following fields:
***[`image`](https://docs.gitlab.com/ee/ci/yaml/#image)**: docker image used to run the job
***`stage`**: default stage for the job, must be in our [default stage list](/use-the-hub/#stages)
***[`script`](https://docs.gitlab.com/ee/ci/yaml/#script)**: this is the heart of the job. It contains a list of shell commands to run the job
***[`variables`](https://docs.gitlab.com/ee/ci/yaml/#variables)**: variables used by the `script` part of the job to customize its behaviour
***[`artifacts`](https://docs.gitlab.com/ee/ci/yaml/#artifacts)**: specify the result of the job that should be exposed to the user trough classic artifact or Gitlab reports
See our Best Practices and guidelines: TODO LINK
**Example of job definition [`gitleaks.yml`](https://r2devops.io/jobs/static_tests/gitleaks/):**
| `APIDOC_TEMPLATE_PATH` | Path to template folder | `/usr/lib/node_modules/apidoc/template/` |
### Artifacts
Result of documentation build is [exposed
as](https://docs.gitlab.com/ee/ci/yaml/#artifactsexpose_as){:target="_blank"} `apiDoc build` in
merge requests.
## 🏗 Job changelogs
Jobs keep their changelogs in one folder named `versions`. This folder contains
@@ -130,40 +221,3 @@ changes provided by this version.
* New variable `DOCKER_VERBOSITY` to set the verbosity of the build
* New variable `DOCKER_OPTIONS` to be able to add additional options%
```
## 🤖 Job definition
This file must have the same name that the job with the `yml` extension:
`<job_name>.yml`. It contains the Gitlab job configuration in `yaml` format.
!!! info
* Jobs of the hub uses the Gitlab CI/CD configuration format
* Jobs of the hub must specify a Docker image to be run in a container
* See [GitLab CI/CD pipeline configuration reference](https://docs.gitlab.com/ee/ci/yaml/)
Job definition usually contains the following fields:
***[`image`](https://docs.gitlab.com/ee/ci/yaml/#image)**: docker image used to run the job
***`stage`**: default stage for the job, must be in our [default stage list](/use-the-hub/#stages)
***[`script`](https://docs.gitlab.com/ee/ci/yaml/#script)**: this is the heart of the job. It contains a list of shell commands to run the job
***[`variables`](https://docs.gitlab.com/ee/ci/yaml/#variables)**: variables used by the `script` part of the job to customize its behaviour
***[`artifacts`](https://docs.gitlab.com/ee/ci/yaml/#artifacts)**: specify the result of the job that should be exposed to the user trough classic artifact or Gitlab reports
See our Best Practices and guidelines: TODO LINK
**Example of job definition [`gitleaks.yml`](https://r2devops.io/jobs/static_tests/gitleaks/):**