Skip to content

Commit f431c07

Browse files
authored
Document GitLab CI job variable access in LAVA job definition file (#99)
2 parents 4370a41 + 659ffba commit f431c07

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,15 @@ inside a shell they're directly executed by the runner itself.
7373
These variables will typically be set as (masked) CI variables, but they could
7474
also be provided directly in the job.
7575

76+
## Accessing GitLab CI job variables inside LAVA job definition file
77+
78+
GitLab CI job variables are exposed as fields of a ``job`` template variable
79+
inside the LAVA job definition file. Example:
80+
81+
```
82+
job_name: Automated test submitted from GitLab CI Job {{ job.CI_JOB_ID }}
83+
```
84+
7685
## Runner supported commands
7786

7887
The following commands are currently supported in the job scripts:

0 commit comments

Comments
 (0)