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

Use relative paths in remote API

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • warnings-ng-plugin
    • None
    • 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.

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

              Created:
              Updated:
              Resolved: