Change unit test upload step (#14124)

Co-authored-by: parity-processbot <>
This commit is contained in:
Oleg Plakida
2023-05-16 11:24:54 +01:00
committed by GitHub
parent 456dc5d5fd
commit 982db4309c
+8 -16
View File
@@ -226,28 +226,20 @@ test-linux-stable:
--partition count:${CI_NODE_INDEX}/${CI_NODE_TOTAL} --partition count:${CI_NODE_INDEX}/${CI_NODE_TOTAL}
# we need to update cache only from one job # we need to update cache only from one job
- if [ ${CI_NODE_INDEX} == 1 ]; then rusty-cachier cache upload; fi - if [ ${CI_NODE_INDEX} == 1 ]; then rusty-cachier cache upload; fi
artifacts: # Upload tests results to Elasticsearch
when: always - echo "Upload test results to Elasticsearch"
paths:
- target/nextest/default/junit.xml
reports:
junit: target/nextest/default/junit.xml
test-linux-stable-upload-test-results:
stage: test
needs:
- job: test-linux-stable
artifacts: true
extends:
- .docker-env
- .test-refs
script:
- cat target/nextest/default/junit.xml | xq . > target/nextest/default/junit.json - cat target/nextest/default/junit.xml | xq . > target/nextest/default/junit.json
- "curl -v -XPOST --http1.1 - "curl -v -XPOST --http1.1
-u ${ELASTIC_USERNAME}:${ELASTIC_PASSWORD} -u ${ELASTIC_USERNAME}:${ELASTIC_PASSWORD}
https://elasticsearch.parity-build.parity.io/unit-tests/_doc/${CI_JOB_ID} https://elasticsearch.parity-build.parity.io/unit-tests/_doc/${CI_JOB_ID}
-H 'Content-Type: application/json' -H 'Content-Type: application/json'
-d @target/nextest/default/junit.json" -d @target/nextest/default/junit.json"
artifacts:
when: always
paths:
- target/nextest/default/junit.xml
reports:
junit: target/nextest/default/junit.xml
test-frame-support: test-frame-support:
stage: test stage: test