Skip to content

Running selector on boolean build param #73

@bilki

Description

@bilki

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions