@@ -180,46 +180,58 @@ The command `gitlab-ci-local --list` will return pretty output and will also fil
180180to ` when: never ` .
181181
182182``` text
183- name description stage when allow_failure needs
184- test-job Run Tests test on_success false
185- build-job build on_success true [test-job]
183+ name description stage when allow_failure needs
184+ test-job Run Tests test on_success false
185+ build-job build on_success true [test-job]
186+ exit-codes-job build on_success [42,137] []
187+ deploy-job deploy on_success [1]
186188```
187189
190+ - ** description** : always shown, empty when not set
191+ - ** allow_failure** : ` true ` , ` false ` , or ` [exit_code1,exit_code2] ` when specific exit codes are allowed to fail
192+ - ** needs** : omitted when not specified (job follows stage ordering), ` [] ` when explicitly set to no dependencies (job starts immediately)
193+
188194#### --list-all
189195
190196Same as ` --list ` but will also print out jobs which are set to ` when: never ` (directly and implicit e.g. via rules).
191197
192198``` text
193- name description stage when allow_failure needs
194- test-job Run Tests test on_success false
195- build-job build on_success true [test-job]
196- deploy-job deploy never false [build-job]
199+ name description stage when allow_failure needs
200+ test-job Run Tests test on_success false
201+ build-job build on_success true [test-job]
202+ exit-codes-job build on_success [42,137] []
203+ deploy-job deploy on_success [1]
204+ never-job test never false
197205```
198206
199207#### --list-csv
200208
201- The command ` gitlab-ci-local --list-csv ` will output the pipeline jobs as csv formatted list and will also filter all
202- jobs which are set
203- to ` when: never ` .
204- The description will always be wrapped in quotes (even if there is none) to prevent semicolons in the description
205- disturb the csv structure.
209+ The command ` gitlab-ci-local --list-csv ` will output the pipeline jobs as a CSV-formatted list and will also filter all
210+ jobs which are set to ` when: never ` .
206211
207212``` text
208- name;description;stage;when;allow_failure;needs
209- test-job;"Run Tests";test;on_success;false;[]
210- build-job;"";build;on_success;true;[test-job]
213+ name;stage;when;allowFailure;needs
214+ test-job;test;on_success;false;
215+ build-job;build;on_success;true;[test-job]
216+ exit-codes-job;build;on_success;[42,137];[]
217+ deploy-job;deploy;on_success;[1];
211218```
212219
220+ - ** allowFailure** : ` true ` , ` false ` , or ` [exit_code1,exit_code2] ` when specific exit codes are allowed to fail
221+ - ** needs** : empty when not specified (job follows stage ordering), ` [] ` when explicitly set to no dependencies (job starts immediately)
222+
213223#### --list-csv-all
214224
215- Same as ` --list-csv-all ` but will also print out jobs which are set to ` when: never ` (directly and implicit e.g. via
225+ Same as ` --list-csv ` but will also print out jobs which are set to ` when: never ` (directly and implicit e.g. via
216226rules).
217227
218228``` text
219- name;description;stage;when;allow_failure;needs
220- test-job;"Run Tests";test;on_success;false;[]
221- build-job;"";build;on_success;true;[test-job]
222- deploy-job;"";deploy;never;false;[build-job]
229+ name;stage;when;allowFailure;needs
230+ test-job;test;on_success;false;
231+ build-job;build;on_success;true;[test-job]
232+ exit-codes-job;build;on_success;[42,137];[]
233+ deploy-job;deploy;on_success;[1];
234+ never-job;test;never;false;
223235```
224236
225237## Quirks
0 commit comments