From aceab8c82c8d84e8cb188f062c0b1e553e8c5372 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sat, 5 May 2018 14:50:14 -0400 Subject: [PATCH] Jenkins upload coverage to codecov.io --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c3c43d2f6d3f..39eeed636f4b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -83,7 +83,6 @@ pipeline { sh 'ccache -z' sh 'make distclean' sh 'make coverage' - //sh 'bash <(curl -s https://codecov.io/bash) -t ${CODECOV_TOKEN}' sh 'make coverage_html' // publish html publishHTML target: [ @@ -95,6 +94,9 @@ pipeline { reportFiles: '*', 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 'make distclean' }