Skip to content

Commit

Permalink
chore(build): generate codecov report
Browse files Browse the repository at this point in the history
Signed-off-by: sagarkrsd <[email protected]>
  • Loading branch information
sagarkrsd committed Feb 24, 2020
1 parent 76fcf2b commit 02806cc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ pipeline {
deleteDir()
}
success {
script{
withCredentials([string(credentialsId: 'OPENEBS_UPGRADE_CODECOV_TOKEN', variable: 'CODECOV_TOKEN')]) {
CODECOV_BASH = sh(returnStdout: true, script: "curl -s https://codecov.io/bash -o test.sh")
sh 'chmod +x ./test.sh'
sh "bash ./test.sh -t ${CODECOV_TOKEN}"
}
}
echo 'This will run only if successful'
slackSend channel: '#jenkins-builds',
color: 'good',
Expand Down

0 comments on commit 02806cc

Please sign in to comment.