Skip to content

.gitlab-ci: refactor workflow

This commit introduces several refinements to the .gitlab-ci.yml file and the organization of pipelines:

  • Removes the ugly multiplexing of jobs according to the presence or absence of a variable.

  • Ensures that all jobs are safe to run even when no variables are set. This eliminates the need to set up variables for testing code.

  • Execute jobs based on the files changed in code pushes (i.e. no need to run etl script if they were not modified).

  • Introduces a new variable, RUN_THIS_STAGE_ONLY. If set, only the container stage and the stage specified in the variable will run. This is especially useful for scheduled pipelines running specific jobs, thereby conserving runner resources by not executing unnecessary stages (e.g., no need to execute python-linting when executing triggered-jobs).

  • Other improvements include enhanced code comments, simplification of rules, and better code organization.

Co-developed-by: Guilherme Gallo guilherme.gallo@collabora.com

Signed-off-by: Helen Koike helen.koike@collabora.com

Edited by Helen Mae Koike Fornazier

Merge request reports

Loading