Skip to content
Snippets Groups Projects

Add job parameter to the compare-reports script

Merged Lukas Eipert requested to merge leipert-job-id into master
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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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
Loading