2020-04-21 18:46:21 +08:00
|
|
|
timeout(time: 30, unit: 'MINUTES') {
|
|
|
|
dir ("ci/scripts") {
|
|
|
|
sh "./coverage.sh"
|
|
|
|
boolean isNightlyTest = currentBuild.getBuildCauses('hudson.triggers.TimerTrigger$TimerTriggerCause').size() != 0 ? true : false
|
|
|
|
String formatFlag = "${BINARY_VERSION}-version-${OS_NAME}-unittest".replaceAll("\\.", "_").replaceAll("-", "_")
|
|
|
|
if (isNightlyTest) {
|
|
|
|
withCredentials([[$class: 'StringBinding', credentialsId: "milvus-ci-codecov-token", variable: 'CODECOV_TOKEN']]) {
|
2020-05-28 16:47:19 +08:00
|
|
|
sh "curl -s https://codecov.io/bash | bash -s - -f output_new.info -U \"--proxy http://proxy.zilliz.tech:1088\" -A \"--proxy http://proxy.zilliz.tech:1088\" -n ${BINARY_VERSION}-version-${OS_NAME}-unittest -F nightly -F ${formatFlag} || echo \"Codecov did not collect coverage reports\""
|
2020-04-21 18:46:21 +08:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
withCredentials([[$class: 'StringBinding', credentialsId: "milvus-ci-codecov-token", variable: 'CODECOV_TOKEN']]) {
|
2020-05-28 16:47:19 +08:00
|
|
|
sh "curl -s https://codecov.io/bash | bash -s - -f output_new.info -U \"--proxy http://proxy.zilliz.tech:1088\" -A \"--proxy http://proxy.zilliz.tech:1088\" -n ${BINARY_VERSION}-version-${OS_NAME}-unittest -F ${formatFlag} || echo \"Codecov did not collect coverage reports\""
|
2020-04-21 18:46:21 +08:00
|
|
|
}
|
2020-03-17 10:36:24 +08:00
|
|
|
}
|
2019-10-18 17:24:58 +08:00
|
|
|
}
|
|
|
|
}
|