milvus/ci/jenkins/jenkinsfile/coverage.groovy
milvus-ci-robot f099a1ce14 rename env.PIPELIEN_NAME to env.PIPELINE_NAME
Former-commit-id: faf3f207355606dc7e1f2138fb29f4547ac0ea0f
2019-10-18 19:58:20 +08:00

11 lines
505 B
Groovy

timeout(time: 60, unit: 'MINUTES') {
dir ("ci/jenkins/scripts") {
sh "./coverage.sh -o /opt/milvus -u root -p 123456 -t \$POD_IP"
// Set some env variables so codecov detection script works correctly
withCredentials([[$class: 'StringBinding', credentialsId: "${env.PIPELINE_NAME}-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"'
}
}
}