jenkinsci / embeddable-build-status-plugin

Embed build status of Jenkins jobs in web pages
https://plugins.jenkins.io/embeddable-build-status/
MIT License
166 stars 259 forks source link

RFC: support for ENV to filter out PR builds #251

Open cdaringe opened 10 months ago

cdaringe commented 10 months ago

What feature do you want to see added?

My job runs builds against commits into the associated branch and PR builds against the associated branch, but I have no capable filter to remove PR builds.

It would be great to use something like ENV vars (vs just build params):

/buildStatus/icon?job=foo%2Fbar&build=lastCompleted:${env.TRIGGER_BRANCH=main}

such that my PR builds in my job are not used for the badge.

Upstream changes

No response

MarkEWaite commented 10 months ago

I don't plan to implement this because I believe that a single job that builds multiple branches is confusing for users. It is better to use a multibranch Pipeline and allow the multibranch to create and delete jobs as pull requests arrive and are merged.

cdaringe commented 10 months ago

Bummer. MultiBranch jenkins isn’t available to me