• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • coverage-plugin
    • Jenkins 2.455
      Coverage 1.14.0

      When trying to access the coverage results of a build through the api as described in the documentation we are getting a 404.

      For a build under https://some.jekins.server.com/job/SomeFolder/job/Project/job/Repository/job/Branch/95/
      we would try to get the coverage results through https://some.jekins.server.com/job/SomeFolder/job/Project/job/Repository/job/Branch/95/coverage/api/json?pretty=true
      but this results in a 404

      Seems like this is supposed to work (bug maybe not for multi-branch pipelines?) or if we are doing something wrong to make this work.

          [JENKINS-73065] Improve documentation for Remote API access

          Arne Brys added a comment -

          Managed to get it working with some trail and error.
          As we do recordCoverage for serveral suites with a specific name and id the url suffix is not the default one "/coverage/api/json?pretty=true"

          For example when doing recordCoverage with id and name "UnitTests" the suffix will become
          "/UnitTests/api/json?pretty=true"

          So this would not be a bug but rather a documentation improvement

          Arne Brys added a comment - Managed to get it working with some trail and error. As we do recordCoverage for serveral suites with a specific name and id the url suffix is not the default one " /coverage/api/json?pretty=true " For example when doing recordCoverage with id and name "UnitTests" the suffix will become " /UnitTests/api/json?pretty=true " So this would not be a bug but rather a documentation improvement

          Ulli Hafner added a comment -

          Yes, normally one would click on the remote API link in the UI to get the correct URL.

          If you have a good idea on how to improve the documentation, please submit a PR

          Ulli Hafner added a comment - Yes, normally one would click on the remote API link in the UI to get the correct URL. If you have a good idea on how to improve the documentation, please submit a PR

            Unassigned Unassigned
            arne_brys Arne Brys
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: