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

Message is missing from REST API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • tasks-plugin
    • None
    • Jenkins ver. 1.565.2
      Task Scanner Plug-in 4.42
      Static Analysis Collector Plug-in 1.41
      Static Analysis Utilities 1.59

      The XML API does not contain the message. I installed the latest LTS Jenkins and latest TaskScanner (with dependencies) on a test server and set up a very simple job - fetch a file and scan for warnings.

      Output from http://localhost:8080/job/TaskScanner/2/tasksResult/

      File Line Priority Type Message
      MyFile:278 278 Low XXX Make generic
      MyFile:541 541 Low XXX Assign correct drivers

      Output from http://localhost:8080/job/TaskScanner/2/tasksResult/api/xml?depth=1

        <newWarning>
          <fileName>/work/jenkins_test_slave/workspace/TaskScanner/MyFile</fileName>
          <key>4</key>
          <message/>
          <primaryLineNumber>278</primaryLineNumber>
          <priority>LOW</priority>
        </newWarning>
        <newWarning>
          <fileName>/work/jenkins_test_slave/workspace/TaskScanner/MyFile</fileName>
          <key>5</key>
          <message/>
          <primaryLineNumber>541</primaryLineNumber>
          <priority>LOW</priority>
        </newWarning>
      

            drulli Ulli Hafner
            mabahj Markus
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: