This is an automated email from the ASF dual-hosted git repository.

shaojunwang pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-teaclave-java-tee-sdk.git

commit bfc13598d322717da86ae01e65b636558d18b704
Author: jeffery.wsj <[email protected]>
AuthorDate: Tue Feb 15 18:00:14 2022 +0800

    [tools] Add Jacoco plugin for JavaEnclave's jenkins CI
    
    Summary: Add Jacoco plugin to make JavaEnclave's code coverage report 
visualized
    
    Test Plan: all tests pass
    
    Reviewers: lei.yul, cengfeng.lzy, sanhong.lsh
    
    Issue: https://aone.alibaba-inc.com/task/39583016
    
    CR: 
https://code.aone.alibaba-inc.com/java-tee/JavaEnclave/codereview/7745803
---
 tools/cicd/jenkinsfile | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/tools/cicd/jenkinsfile b/tools/cicd/jenkinsfile
index ba3a2b0..600f1ad 100644
--- a/tools/cicd/jenkinsfile
+++ b/tools/cicd/jenkinsfile
@@ -11,6 +11,16 @@ pipeline {
                      echo 'Build JavaEnclave SDK:'
                      sh "./tools/cicd/make.sh"
                  }
+                 post {
+                     success {
+                         jacoco (
+                             execPattern: 'sdk/**/target/jacoco.exec',
+                             classPattern: 'sdk/**/target/classes',
+                             sourcePattern: 'sdk/**/src/main/java',
+                             sourceInclusionPattern: 
'com/alibaba/confidentialcomputing/**/*.java,com/alibaba/confidentialcomputing/**/**/*.java',
+                          )
+                     }
+                 }
                  }
          }
 }
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to