%# AlmaLinux external issue reporting: link the failing job to the AlmaLinux %# Bug Tracker (https://bugs.almalinux.org, MantisBT). Self-contained - unlike %# the openSUSE branding it does not need a report_external_issue helper/plugin, %# so no extra Perl plugin has to be packaged. MantisBT cannot prefill the bug %# form via GET, so we preselect the matching AlmaLinux-N project and carry the %# failing scenario/module in the link tooltip. % my $job = stash('job'); % if ($job) { % my ($major) = ($job->VERSION // '') =~ /^(\d+)/; % my %project_ids = (8 => 2, 9 => 3, 10 => 4); % my $pid = $major ? $project_ids{$major} : undef; % my $url = 'https://bugs.almalinux.org/bug_report_page.php'; % $url .= "?project_id=$pid" if $pid; % my $module = stash('moduleid') // ''; % my $scenario = $job->scenario_name // ''; % my $label = 'Report bug in the AlmaLinux Bug Tracker'; % $label .= " (scenario '$scenario'" . ($module ? ", module '$module'" : '') . ')' if $scenario; %= stepaction_for($label => $url, 'fa-bug', 'report almalinux_bugtracker') % }