"affectedPaths" returns relative path and not absolute path

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

XMLWordPrintable

      When using REST APIs to check "affectedpaths", we get relative path from repositiry and NOT the complete path.
      Sample command:

      https://jenkins.<company>.com/job/<jobname>/<buildnumber>/api/json?pretty=true&tree=result,changeSets[items[comment,affectedPaths,affectedfiles,msg,url,commitId,url,timestamp,authorEmail]] 

      This shows:

      "affectedPaths" : [
      "dir1/dir2/file1",
      "dir3/dir4/file2",
      ]

      While the expected output is:

      "affectedPaths" : [
      "https://gerrit.<company>.com/c/parentdir/dir1/dir2/file1",
      "https://gerrit.<company>.com/c/parentdir/dir3/dir4/file2",
      ]

            Assignee:
            Unassigned
            Reporter:
            Vrukesh
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: