Skip to content

custom detailsURL for recordIssues and recordCoverage #3352

Description

@esatterwhite

What feature do you want to see added?

The warnings plugin publishes the results to GitHub checks, when possible. The used publishChecks function allows you to specify a custom URL that is used as the link at the bottom of the checks. The Jenkins warnings plugin sets this value to the URL of the Jenkins build job, which isn't always accurate, or in out case publicly accessible. Rather than spin up a second instance of Jenkins, or try to make certain jobs public, we rather just change the URL that link points to.

We can do this with publish checks manually, but then we lose all of the nice reporting generated by recordIssues, and recordCoverage to both jenkins and github. Which is less than ideal.

recordIssues(
  ...
, checksDetailsUrl: 'http://my.public.help.com'
)

Upstream changes

I think this logic found here is where this is actually happening.

There needs to be away to provide a custom url. it is currently always forcing a url to the job on the jenkins UI.

Are you interested in contributing this feature?

yes. Some direction on what needs to change would be helpfule

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions