You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
The job status is provided by ci.jenkins.io from the https://ci.jenkins.io/job/Core/job/jenkins/job/master/badge/icon?subject=Core text. The hyperlink destination is provided by my Markdown https://ci.jenkins.io/job/Core/job/jenkins/job/master/
The ci.jenkins.io examples in the embeddable build status pages show that pattern as well.
I'm not aware of any way in markdown to embed an image and have that image also return its hyperlink destination.
Jenkins Pipeline
I use the link parameter to Pipeline so that when badges are added to a build, they have a link. Here is an example Pipeline:
Would it be clearer if the current "Query parameters" section of the documentation were split into two sections, one for badges inside Jenkins, and one for build status used outside of Jenkins?
The link argument to a badge definition works because it is processed inside Jenkins and the link value is converted into a clickable hyperlink inside Jenkins.
The link parameter in an HTML query string does not have any way of returning the link to the calling page.
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
The text was updated successfully, but these errors were encountered: