Skip to content

[#781] Fix scheduled steps filtering

Roman Melnikov requested to merge rvem/#781-fix-scheduled-steps-filtering into master

Description

Problem: GitLab CI has slightly confusing rules:if behaviour. The step is executed when one of 'if' rules matches unless a rule with 'when: never' is matched. As a result, currently, scheduled docker and testnets pipelines have the same set of steps to execute.

Solution: Use 'if' with 'when: never' and corresponding 'SCHEDULED_*' env variable to filter scheduled steps properly.

See https://docs.gitlab.com/ee/ci/yaml/#rules

Related issue(s)

Fix for #781 (closed)

Checklist for your Merge Request

Related changes (conditional)

  • Tests (see short guidelines)

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:
    • I updated changelog files of all affected packages released to Hackage if my changes are externally visible.

Stylistic guide (mandatory)

Edited by Roman Melnikov

Merge request reports