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

junitParser() can not detect any issues, while junit() does

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • warnings-ng-plugin
    • None
    • Jenkins 2.249.2
      Warnings Next Generation Plugin 8.4.4

      post {
      	always {
      		archiveArtifacts "impl/eu.pinteam.kyoto.${TOOL}.releng.product/target/products/*.zip"
      		junit(allowEmptyResults: true, testResults: "impl/eu.pinteam.*.test/target/surefire-reports/*.xml")
      		script {
      			def java = scanForIssues tool: java()
      			def javaDoc = scanForIssues tool: javaDoc()
      			def openTasks = scanForIssues tool: taskScanner(highTags: 'FIXME, XXX', ignoreCase: true, includePattern: 'impl/eu.pinteam.*/src/**/*.java', normalTags: 'TODO')
      			def junit = scanForIssues tool: junitParser(pattern: 'impl/eu.pinteam.*.test/target/surefire-reports/*.xml')
      			def mavenConsole = scanForIssues tool: mavenConsole(pattern: 'impl/target/build.log')
      			publishIssues id: "${TOOL}", name: "Issues [${TOOL}]", issues: [java, javaDoc, junit, mavenConsole, openTasks], sourceCodeEncoding: 'UTF-8'
      		}
      	}
      }
      

       

        1. build.log
          2.29 MB
        2. file_can_not_be_found.png
          file_can_not_be_found.png
          139 kB
        3. image-2020-11-03-16-18-29-627.png
          image-2020-11-03-16-18-29-627.png
          81 kB
        4. system-err_missing.png
          system-err_missing.png
          8 kB
        5. test.xml
          65 kB
        6. wrong_path.png
          wrong_path.png
          3 kB

            drulli Ulli Hafner
            benbrummer Benjamin Brummer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: