diff --git a/Jenkinsfile b/Jenkinsfile index ad653b3..eb6cf6c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -426,9 +426,17 @@ pipeline { } post { always { - dir("gitrepo") { - publishCoverage adapters: [cobertura(mergeToOneReport: true, path: "helpers-results/cl_types_check/cobertura.xml")] - junit 'helpers-results/cl_types_check/junit.xml' + dir("gitrepo") { + //publish coverage + recordCoverage( sourceDirectories: [[path: 'src']], + tools: [[parser: 'COBERTURA', pattern: 'helpers-results/cl_types_check/cobertura.xml']], + id: 'COBERTURA', name: 'COBERTURA Coverage', + sourceCodeRetention: 'EVERY_BUILD',) + + //add type check to junit result set + junit 'helpers-results/cl_types_check/junit.xml' + + //publish html reports files publishHTML([ reportDir: "helpers-results/cl_quality_check", reportFiles: "report.html", diff --git a/pyproject.toml b/pyproject.toml index 10abb4a..22b81f3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -70,12 +70,12 @@ Documentation = "https://chacha.ddns.net/mkdocs-web/chacha/pyrestresource/mast Tracker = "https://chacha.ddns.net/gitea/chacha/pyrestresource/issues" [project.optional-dependencies] -test = ["chacha_cicd_helper@git+https://chacha.ddns.net/gitea/chacha/chacha_cicd_helper.git@master"] -coverage-check = ["chacha_cicd_helper@git+https://chacha.ddns.net/gitea/chacha/chacha_cicd_helper.git@master"] -complexity-check = ["chacha_cicd_helper@git+https://chacha.ddns.net/gitea/chacha/chacha_cicd_helper.git@master"] -quality-check = ["chacha_cicd_helper@git+https://chacha.ddns.net/gitea/chacha/chacha_cicd_helper.git@master"] -type-check = ["chacha_cicd_helper@git+https://chacha.ddns.net/gitea/chacha/chacha_cicd_helper.git@master"] -doc-gen = ["chacha_cicd_helper@git+https://chacha.ddns.net/gitea/chacha/chacha_cicd_helper.git@master"] +test = ["chacha_cicd_helper"] +coverage-check = ["chacha_cicd_helper"] +complexity-check = ["chacha_cicd_helper"] +quality-check = ["chacha_cicd_helper"] +type-check = ["chacha_cicd_helper"] +doc-gen = ["chacha_cicd_helper"] # [project.scripts] # my-script = "my_package.module:function"