Не валидный yaml-файл в CI/CD
Перестал корректно работать yml-файл в GitLab. Файл содержит следующий код:
image: keith1983/debian_with_python_3
stages:
- test
- report
run_ui_tests:
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
tags:
- est
stage: test
before_script:
- echo "Prepairing enviroment..."
- python --version
- pip install -r requirements.txt
script:
- echo "Executing ui tests with Pytest..."
- pytest -v cio_tests
timeout: 5h
allow_failure: true
artifacts:
when: always
paths:
- allure-results/
expire_in: 30 mins 30 sec
reporting:
tags:
- est
stage: report
needs:
- run_ui_tests
script:
- echo "Generating report ..."
- dir
- allure generate -c allure-results/ -o allure-report/
artifacts:
when: always
paths:
- allure-report/
expire_in: 5 days
after_script:
- dir
При запуске пайплайн валится с ошибкой:
Но ведь yml содержит джобу run_ui_tests
. В чем причина такого поведения?