Reported here: https://github.com/jenkinsci/pipeline-build-step-plugin/pull/112#discussion_r1204418673