Use relative paths in remote API

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • 8.0.0

      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.

            Assignee:
            Ulli Hafner
            Reporter:
            StNekroman Nyaa
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: