-
Notifications
You must be signed in to change notification settings - Fork 261
Open
Description
Which is the proper way to use selectors against boolean build params? I've tried this:
https://<jenkins_url>/badge/icon?subject=Boolean param ${params.myBoolean}&build=last,-10,lastCompleted:${params.myBoolean=true}
As the params.myBoolean in the subject spits true or false, I assumed that I could use that same string in the selector, but it doesn't seem to be working correctly (selector evaluation is defaulting to true).
I imagine that https://github.com/jenkinsci/embeddable-build-status-plugin/blob/master/src/main/java/org/jenkinsci/plugins/badge/extensions/BuildParameterRunSelectorExtension.java#L41 this line is where the evaluation is taking place, but I can't see anything wrong with that, unless value.getValue().toString() is doing something completely different from what I think 🤔
Metadata
Metadata
Assignees
Labels
No labels