From 24e1ea5597e836f68c67b114e2ad9f988ff6fdaa Mon Sep 17 00:00:00 2001 From: Charles Kinuthia Date: Fri, 11 Aug 2023 10:59:38 +0200 Subject: [PATCH 1/2] upload selection BE results log with debugging inactive upload public_log_DEBUGGING_inactive--sha-.txt log file --- .gitlab-ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0b874f7954..f9f03e0884 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1476,11 +1476,14 @@ upload-selection-BE-log: script: - cp -r $SELECTION_BE_RESULT ./selection-BE-result - Get-Content -Path selection-BE-result/public_log--sha-*.txt - - $has_failed = (Select-String -Path selection-BE-result/public_log--sha-*.txt -Pattern '^FAILED tests' -CaseSensitive).Line - - If($has_failed) {exit -1} + - $has_failed_debugging_active = (Select-String -Path selection-BE-result/public_log--sha-*.txt -Pattern '^FAILED tests' -CaseSensitive).Line + - Get-Content -Path selection-BE-result/public_log_DEBUGGING_inactive--sha-*.txt + - $has_failed_debugging_inactive = (Select-String -Path selection-BE-result/public_log_DEBUGGING_inactive--sha-*.txt -Pattern '^FAILED tests' -CaseSensitive).Line + - If($has_failed_debugging_active -or has_failed_debugging_inactive) {exit -1} artifacts: paths: - selection-BE-result/public_log--sha-*.txt + - selection-BE-result/public_log_DEBUGGING_inactive--sha-*.txt when: always expire_in: 1 week -- GitLab From d249ce2ac703e643610d5777f7b97ca54941ab4a Mon Sep 17 00:00:00 2001 From: Charles Kinuthia Date: Fri, 11 Aug 2023 11:07:51 +0200 Subject: [PATCH 2/2] [ci] add missed $ symbol in upload-selection-BE-log --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f9f03e0884..2e1289ed36 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1479,7 +1479,7 @@ upload-selection-BE-log: - $has_failed_debugging_active = (Select-String -Path selection-BE-result/public_log--sha-*.txt -Pattern '^FAILED tests' -CaseSensitive).Line - Get-Content -Path selection-BE-result/public_log_DEBUGGING_inactive--sha-*.txt - $has_failed_debugging_inactive = (Select-String -Path selection-BE-result/public_log_DEBUGGING_inactive--sha-*.txt -Pattern '^FAILED tests' -CaseSensitive).Line - - If($has_failed_debugging_active -or has_failed_debugging_inactive) {exit -1} + - If($has_failed_debugging_active -or $has_failed_debugging_inactive) {exit -1} artifacts: paths: - selection-BE-result/public_log--sha-*.txt -- GitLab