Browse Source

[pipeline] Switch from dependencies to needs

This new keyword of GitLab allows for jobs in further stages start as
soon as their dependencies are done.

This should speed-up this pipeline, starting most of the acceptance
testing without finishing to the raspberrypi conversions.

Changelog: None

Signed-off-by: Lluis Campos <lluis.campos@northern.tech>
2.3.x
Lluis Campos 4 years ago
parent
commit
5fff844e23
  1. 27
      .gitlab-ci.yml

27
.gitlab-ci.yml

@ -30,6 +30,7 @@ stages:
build:
stage: build
needs: []
image: docker:git
services:
- docker:19.03.5-dind
@ -43,13 +44,14 @@ build:
.template_convert_raspbian: &convert_raspbian
stage: convert
needs:
- job: build
artifacts: true
image: teracy/ubuntu:18.04-dind-18.09.9
services:
- docker:18-dind
tags:
- mender-qa-slave
dependencies:
- build
before_script:
- export AWS_ACCESS_KEY_ID=$TMP_STORAGE_AWS_ACCESS_KEY_ID
- export AWS_SECRET_ACCESS_KEY=$TMP_STORAGE_AWS_SECRET_ACCESS_KEY
@ -87,13 +89,14 @@ convert_raspbian_raspberrypi4:
.template_test_acceptance: &test_acceptance
stage: test_acceptance
needs:
- job: build
artifacts: true
image: teracy/ubuntu:18.04-dind-18.09.9
services:
- docker:18-dind
tags:
- mender-qa-slave
dependencies:
- build
timeout: 2h
before_script:
- export AWS_ACCESS_KEY_ID=$TMP_STORAGE_AWS_ACCESS_KEY_ID
@ -136,17 +139,21 @@ convert_raspbian_raspberrypi4:
test_acceptance_prebuilt_raspberrypi3:
<<: *test_acceptance_prebuilt_raspberrypi
dependencies:
- build
- convert_raspbian_raspberrypi3
needs:
- job: build
artifacts: true
- job: convert_raspbian_raspberrypi3
artifacts: true
variables:
RASPBERRYPI_PLATFORM: raspberrypi3
test_acceptance_prebuilt_raspberrypi4:
<<: *test_acceptance_prebuilt_raspberrypi
dependencies:
- build
- convert_raspbian_raspberrypi4
needs:
- job: build
artifacts: true
- job: convert_raspbian_raspberrypi4
artifacts: true
variables:
RASPBERRYPI_PLATFORM: raspberrypi4

Loading…
Cancel
Save