Add job parameter to the compare-reports script
1 unresolved thread
1 unresolved thread
The job parameter allows us to:
- Find the parent commit from master more easily
- Add a link to the full (html) report.
Merge request reports
Activity
enabled an automatic merge when the pipeline for bba2088b succeeds
mentioned in commit ae5374ff
mentioned in commit gitlab-org/gitlab@78f60954
mentioned in merge request gitlab-org/gitlab!32712 (merged)
80 if (!fromCommit.parent_ids.includes(to.id)) { 81 throw new Error( 82 `Job ${args.job} ran on ${fromCommit.id}. ${to.id} is not a parent of that commit and should have been` 83 ); 84 } 85 86 const masterCommitSHA = fromCommit.parent_ids.find((sha) => sha !== to.id); 87 88 console.warn(`Parent commit from master seems to be: ${masterCommitSHA}`); 89 90 from = await readFromSHA(masterCommitSHA); 91 92 if (args.html) { 93 const url = require("url"); 94 fullReport = url.resolve( 95 jobInfo.web_url + "/artifacts/browse/",
Please register or sign in to reply