Skip to content

Usage/purpose of the "link" parameter is unclear #370

@kkaja123

Description

@kkaja123

Describe your use-case which is not covered by existing documentation.

The "link" can be provided in the query or in the pipeline addEmbeddableBadgeConfiguration function. This results in the icon now being clickable, but I can't figure out how to embed the icon while still taking me to the configured link.

E.g. in Markdown, an image target hyperlink needs to be explicitly provided. It's not like the rendered markdown will automatically inherit the source icon's hyperlink target. I can make the markdown image's hyperlink the image itself, which takes me to a page that only has the badge, and I can click on that to go to the configured "link".

Maybe there's a special http://<jenkins_root>/buildStatus/link URL that would redirect the client to the configured "link", but I haven't been able to find anything in the documentation that could do something like that.

Ultimately, is there a point of the "link" parameter if the primary use case for the plugin is to "embed" the badges elsewhere, where the "link" parameter cannot be used? The information in the documentation about the "link" parameter is lacking in this regard.

Reference any relevant documentation, other materials or issues/pull requests that can be used for inspiration.

No response

Are you interested in contributing to the documentation?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions