Код: Выделить всё
variables:
P7_TESTING_INSTALLATION_PATH: D:\Logos_block_gitlab_runner\pSeven-v2024.05
stages:
- cleanup
- installation
cleanup_build:
tags:
- block_autotest
variables:
ErrorActionPreference: stop
allow_failure: false
stage: cleanup
script:
- Invoke-Expression -Command "$env:P7_TESTING_INSTALLATION_PATH\client\p7batch.exe --log-level=error --run $env:CI_PROJECT_DIR\autotest\jobs\_clear.py"
- if(!$?) { Exit $LASTEXITCODE }
install_block:
tags:
- block_autotest
variables:
ErrorActionPreference: stop
allow_failure: false
stage: installation
script:
- Invoke-Expression -Command "$env:P7_TESTING_INSTALLATION_PATH\client\p7batch.exe --log-level=error --run $env:CI_PROJECT_DIR\autotest\jobs\_setup_block.py"
Код: Выделить всё
@ [Terminal] raise IOError("No such file: '{}'".format(filepath))
@ [Terminal] IOError: No such file: 'D:\Logos_block_gitlab_runner\GitLab-Runner\builds\vDLVWCgmH\0\aero\logos_userblock\autotest\jobs\_clear.py'
[32;1m$ if(!$?) { Exit $LASTEXITCODE }[0;m
section_end:1719260050:step_script
[0K[32;1mJob succeeded[0;m
Я добавил ErrorActionPreference: stop, а такжеallow_failure: false, но все равно получаю успех об исключении Python...
Подробнее здесь: https://stackoverflow.com/questions/786 ... -exception