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

Use relative paths in remote API

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      8.0.0

      Description

      I'm using jenkins-war:2.204.1 with installed and activated warnings-ng plugin 7.3.0

      I configured few tools (Checkstyle and PMD) to analyse the code and return warnings.

      I request warnings(issues) via REST from wangings-ng plugin via 
      GET http://%host%:%port%/job/%jobname%/%bldnum%/checkstyle/all/api/json

      It returns me all found warnings in my source code, but each warning contains absolute fileName.

      Question - why?

      As I found, old warnings plugin reported relative paths, what is exactly what I need.

      Currently, I use EnvInject plugin, in order to request "WORKSPACE" Jenkins war from Jenkins build and I calculate relative paths myself.

      I need to know, if current behavior is expected and stable. So I can assume, that fileName in warnings will be always absolute.

        Attachments

          Issue Links

            Activity

            There are no comments yet on this issue.

              People

              Assignee:
              drulli Ulli Hafner
              Reporter:
              stnekroman StNekroman Nyaa
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: