Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a property to specify the icon of the result #1919

Draft
wants to merge 5 commits into
base: fix-icon-JENKINS-72777
Choose a base branch
from

Conversation

uhafner
Copy link
Member

@uhafner uhafner commented Jan 3, 2025

Add a new property icon to override the default icon for the results.

The icon can be given for the tool or for the overall results:

recordIssues id: 'custom-id', name: 'custom-name', icon: 'custom-icon', 
                       tool: javaDoc(pattern:'**/*issues.txt', reportEncoding:'UTF-8')

recordIssues tool: javaDoc(pattern:'**/*issues.txt', 
    reportEncoding:'UTF-8', 
    id: 'custom-id', 
    name: 'custom-name', 
    icon: 'custom-icon')

@uhafner uhafner added the enhancement Enhancement of existing functionality label Jan 3, 2025
@KalleOlaviNiemitalo
Copy link
Contributor

Can I deploy a custom icon to the userContent directory and reference that?

@uhafner
Copy link
Member Author

uhafner commented Jan 4, 2025

Can I deploy a custom icon to the userContent directory and reference that?

Yes, that works as well. I'll add that to the documentation of the property.

@KalleOlaviNiemitalo
Copy link
Contributor

How about an URL pointing to an external site? Like https://aka.ms/msbuildicon.

@uhafner
Copy link
Member Author

uhafner commented Jan 8, 2025

How about an URL pointing to an external site? Like https://aka.ms/msbuildicon.

It seems that Jenkins also does support that... I never tried that before but it works out of the box.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants