Embeddable Build Status plugin usage

Hello,

I am exploring a specific use case for embeddable build status plugin to showcase the health of each commit hash in a source code. The idea here being that each commit hash is supposed to run multiple pipelines which contribute to overall health of that commit after merging it to the controller branch of the source code.

Environment :
Jenkins Version 2.426.3
Embeddable Plugin Version : 467.v4a_954796e45d

Here is my sample pipeline code in groovy:

node() {
def commitHashBuildBadge = addEmbeddableBadgeConfiguration(id: ā€œ${params.COMMIT_HASH}ā€, subject: ā€œBIOS Buildā€)
commitHashBuildBadge.setStatus(ā€˜runningā€™)
sleep 20
commitHashBuildBadge.setStatus(ā€˜passingā€™)
}

It is observed that if we run multiple builds for the above pipeline only the latest id set by addEmbeddableBadgeConfigurationconfig shows the correct icon and all the previous ones are set back to not run.

Here is the template of https url query used for fetching the icon:

jenkins-url/buildStatus/icon?job=job-name&config={params.COMMIT_HASH}

Also adding a new filter after the execution of the job changes the text shown in the icon which should ideally not be allowed e.g

If the execution of Job #10 is complete, the filter

jenkins-url/buildStatus/icon?job=job-name&config={params.COMMIT_HASH}&subject=my-custom-string should not return any icon however it shows

image

Should this behavior be reported as a bug? Kindly advise.

Thanks!

1 Like