Jenkins upload coverage to codecov.io

This commit is contained in:
Daniel Agar
2018-05-05 14:50:14 -04:00
parent 5780cd3c6b
commit aceab8c82c
Vendored
+3 -1
View File
@@ -83,7 +83,6 @@ pipeline {
sh 'ccache -z' sh 'ccache -z'
sh 'make distclean' sh 'make distclean'
sh 'make coverage' sh 'make coverage'
//sh 'bash <(curl -s https://codecov.io/bash) -t ${CODECOV_TOKEN}'
sh 'make coverage_html' sh 'make coverage_html'
// publish html // publish html
publishHTML target: [ publishHTML target: [
@@ -95,6 +94,9 @@ pipeline {
reportFiles: '*', reportFiles: '*',
reportName: 'Code Coverage' reportName: 'Code Coverage'
] ]
withCredentials([string(credentialsId: 'ECL_CODECOV_TOKEN', variable: 'CODECOV_TOKEN')]) {
sh 'curl -s https://codecov.io/bash | bash -s'
}
sh 'ccache -s' sh 'ccache -s'
sh 'make distclean' sh 'make distclean'
} }