milvus/ci/jenkins/step/coverage.groovy
milvus-ci-robot e3e22cedc5 delete GIT_CREDENTIALS_ID parameter
Former-commit-id: 8308271362483b047c3b406f6cbe0de32734e73d
2019-10-31 10:34:55 +08:00

11 lines
505 B
Groovy

timeout(time: 30, 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"'
}
}
}