-
Improvement
-
Resolution: Not A Defect
-
Minor
-
None
-
Jenkins 2.375.4
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",
]