Hi,

this is an attempt to fix #19614 by passing the Concourse branch parameter to the build scan directly and only fallback to the current mechanism if it isn't set (e.g. in local builds).

As the Concourse stuff is hard to test for me, feel free to decline the PR. Let me know what you think.

Cheers, Christoph

Comment From: snicoll

I've applied those changes to CI. Merging and we can revisit if that breaks

Comment From: dreis2211

Seems to work springboot Pass CI branch parameter to build scan