Przeglądaj źródła

ci: Upload artifacts of target stage jobs to s3 bucket

Aleksei Apaseev 2 lat temu
rodzic
commit
3a998bd0ce
2 zmienionych plików z 8 dodań i 0 usunięć
  1. 4 0
      .gitlab/ci/target-test.yml
  2. 4 0
      tools/ci/artifacts_handler.py

+ 4 - 0
.gitlab/ci/target-test.yml

@@ -50,6 +50,7 @@
       --parallel-index ${CI_NODE_INDEX:-1}
       ${PYTEST_EXTRA_FLAGS}
       --app-info-filepattern \"list_job_*.txt\"
+    - python tools/ci/artifacts_handler.py upload --type logs junit_reports
 
 .pytest_examples_dir_template:
   extends: .pytest_template
@@ -1298,6 +1299,7 @@ pytest_examples_openthread_br:
       --parallel-index ${CI_NODE_INDEX:-1}
       ${PYTEST_EXTRA_FLAGS}
       --app-info-filepattern \"list_job_*.txt\"
+    - python tools/ci/artifacts_handler.py upload --type logs junit_reports
 
 pytest_examples_openthread_bbr:
   extends:
@@ -1332,6 +1334,7 @@ pytest_examples_openthread_bbr:
       --parallel-index ${CI_NODE_INDEX:-1}
       ${PYTEST_EXTRA_FLAGS}
       --app-info-filepattern \"list_job_*.txt\"
+    - python tools/ci/artifacts_handler.py upload --type logs junit_reports
 
 pytest_examples_openthread_sleep:
   extends:
@@ -1363,6 +1366,7 @@ pytest_examples_openthread_sleep:
       --parallel-index ${CI_NODE_INDEX:-1}
       ${PYTEST_EXTRA_FLAGS}
       --app-info-filepattern \"list_job_*.txt\"
+    - python tools/ci/artifacts_handler.py upload --type logs junit_reports
 
 pytest_examples_esp32h2_zigbee:
   extends:

+ 4 - 0
tools/ci/artifacts_handler.py

@@ -21,6 +21,7 @@ class ArtifactType(str, Enum):
 
     LOGS = 'logs'
     SIZE_REPORTS = 'size_reports'
+    JUNIT_REPORTS = 'junit_reports'
 
 
 TYPE_PATTERNS_DICT = {
@@ -48,6 +49,9 @@ TYPE_PATTERNS_DICT = {
         '**/build*/size.json',
         'size_info.txt',
     ],
+    ArtifactType.JUNIT_REPORTS: [
+        'XUNIT_RESULT.xml',
+    ],
 }