diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml index f7ec3f2536..168cf68b42 100644 --- a/.github/workflows/core.yml +++ b/.github/workflows/core.yml @@ -49,7 +49,7 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} file: ./ci/scripts/output_new.info - flags: unittests + name: ${{ matrix.ubuntu }}-unittests yml: ./codecov.yaml centos: @@ -90,5 +90,5 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} file: ./ci/scripts/output_new.info - flags: unittests + name: ${{ matrix.centos }}-unittests yml: ./codecov.yaml diff --git a/ci/jenkins/step/coverage.groovy b/ci/jenkins/step/coverage.groovy index 2fe96666cd..e159d388d6 100644 --- a/ci/jenkins/step/coverage.groovy +++ b/ci/jenkins/step/coverage.groovy @@ -3,7 +3,7 @@ timeout(time: 30, unit: 'MINUTES') { sh "./coverage.sh -o ${env.MILVUS_INSTALL_PREFIX} -u root -p 123456 -t \$POD_IP" // Set some env variables so codecov detection script works correctly withCredentials([[$class: 'StringBinding', credentialsId: "milvus-ci-codecov-token", variable: 'CODECOV_TOKEN']]) { - sh 'curl -s https://codecov.io/bash | bash -s - -f output_new.info || echo "Codecov did not collect coverage reports"' + sh "curl -s https://codecov.io/bash | bash -s - -f output_new.info -n ${BINARY_VERSION}-version-${OS_NAME}-unittest || echo \"Codecov did not collect coverage reports\"" } } }