Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-71767

publishCppcheck do not work in the pipeline

XMLWordPrintable

      1、xml files are generated in the WORKSPACE directory. As follows:
      cppcheck --enable=all --inconclusive --xml --xml-version=2  "${file_name}" 2>"${WORKSPACE}/cppcheck-result.xml"

      2、Call the publishCppcheck plug-in to get the data. As follows:
      stage("Push_cppcheck_result") {
          steps {
              updateGitlabCommitStatus name: 'Jenkins', state: 'running'
              publishCppcheck pattern: "cppcheck-result.xml"
          }
       
      3、Running result

      4、No result file is generated on the primary server

            Unassigned Unassigned
            lili xiangfei
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: