Arnout Vandecappelle | 4f863d7 | 2017-02-14 00:23:03 +0100 | [diff] [blame] | 1 | # Configuration for Gitlab-CI. |
| 2 | # Builds appear on https://gitlab.com/buildroot.org/buildroot/pipelines |
Arnout Vandecappelle | 4f863d7 | 2017-02-14 00:23:03 +0100 | [diff] [blame] | 3 | |
Thomas Petazzoni | bde165f | 2023-02-07 17:31:18 +0100 | [diff] [blame] | 4 | image: $CI_REGISTRY/buildroot.org/buildroot/base:20230207.1123 |
Arnout Vandecappelle | 4f863d7 | 2017-02-14 00:23:03 +0100 | [diff] [blame] | 5 | |
Romain Naour | 93a2870 | 2020-07-25 23:35:58 +0200 | [diff] [blame] | 6 | stages: |
| 7 | - generate-gitlab-ci |
| 8 | - build |
Ricardo Martincoski | 12904c0 | 2019-04-08 00:22:54 -0300 | [diff] [blame] | 9 | |
Romain Naour | 93a2870 | 2020-07-25 23:35:58 +0200 | [diff] [blame] | 10 | generate-gitlab-ci-yml: |
| 11 | stage: generate-gitlab-ci |
| 12 | script: ./support/scripts/generate-gitlab-ci-yml support/misc/gitlab-ci.yml.in > generated-gitlab-ci.yml |
Romain Naour | e0166ec | 2023-08-26 23:00:11 +0200 | [diff] [blame] | 13 | retry: |
| 14 | max: 2 |
| 15 | when: |
| 16 | - runner_system_failure |
| 17 | - stuck_or_timeout_failure |
Romain Naour | 93a2870 | 2020-07-25 23:35:58 +0200 | [diff] [blame] | 18 | artifacts: |
Romain Naour | 12c7a05 | 2021-08-21 15:46:46 +0200 | [diff] [blame] | 19 | when: always |
Romain Naour | 93a2870 | 2020-07-25 23:35:58 +0200 | [diff] [blame] | 20 | paths: |
| 21 | - generated-gitlab-ci.yml |
Romain Naour | 12c7a05 | 2021-08-21 15:46:46 +0200 | [diff] [blame] | 22 | - br-test-pkg/*/.config |
| 23 | - br-test-pkg/*/missing.config |
Arnout Vandecappelle | d498aa4 | 2017-06-30 18:42:53 +0200 | [diff] [blame] | 24 | |
Romain Naour | 93a2870 | 2020-07-25 23:35:58 +0200 | [diff] [blame] | 25 | buildroot-pipeline: |
| 26 | stage: build |
| 27 | trigger: |
| 28 | include: |
| 29 | - artifact: generated-gitlab-ci.yml |
| 30 | job: generate-gitlab-ci-yml |
| 31 | strategy: depend |
Romain Naour | 12c7a05 | 2021-08-21 15:46:46 +0200 | [diff] [blame] | 32 | variables: |
| 33 | PARENT_PIPELINE_ID: $CI_PIPELINE_ID |