@@ -43,7 +43,7 @@ Job definition usually contains the following fields:
***[`image`](https://docs.gitlab.com/ee/ci/yaml/#image){:target="_blank"}**: docker image used to run the job
***`stage`** (mandatory): 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){:target="_blank"}** (mandatory): 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){:target="_blank"}**: variables used by the `script` part of the job to customize its behaviour
***[`variables`](https://docs.gitlab.com/ee/ci/yaml/#variables){:target="_blank"}**: variables used by the `script` part of the job to customize its behavior
***[`artifacts`](https://docs.gitlab.com/ee/ci/yaml/#artifacts){:target="_blank"}**: specify the result of the job that should be exposed to the user trough classic artifact or Gitlab reports
**Example of job definition [`apidoc.yml`](https://r2devops.io/jobs/build/apidoc/):**
@@ -82,7 +82,7 @@ the following fields:
| `icon` | Unicode emoji character to represent the job ([emojipedia](https://emojipedia.org)) | Yes |
| `default_stage` | Default stage of the job, you have to choose the most relevant stage from our [default stage list](/use-the-hub/#stages) | Yes |
| `maintainer` | Gitlab username of the maintainer | Yes |
| `license` | Open-source licence for the job. You can choose between `Apache-2.0` and `MIT` | Yes |
| `license` | Open-source license for the job. You can choose between `Apache-2.0` and `MIT` | Yes |
| `labels` | List of label describing the job | No |
| `images` | Dict of docker image(s) used by the job. Image name as key and tag version as value | Yes |
| `tools` | Dict of tool(s) installed during the job. Name as key and version as value | No |
@@ -149,11 +149,11 @@ This file, named `README.md`, contains the documentation of a job in `markdown`
## 🏗 Job changelogs
Jobs keep their changelogs in one folder named `versions`. This folder contains
`markdown` files, each of them representing a version and containing list of
`markdown` files, each of them representing a version and containing a list of
changes provided by this version.
!!! info
* Jobs version must follows the [Semantic Versioning](https://semver.org/)
* Jobs version must follow the [Semantic Versioning](https://semver.org/)
format (`MAJOR.MINOR.PATCH`)
* The first version for a job must be `0.1.0`
@@ -195,8 +195,8 @@ Jobs can include screenshots or any pictures to improve documentation and
provide an overview of what job does
You can add as many picture as you want in this folder but try to add only
relevant images. You just have to put file inside the folder and they will be
included in the documentation.
relevant images. You just have to put the file inside the folder, and they will