[jenkins] - use a new method to determine the branch name by ignoring the pr ref_spec - thx to theuni for figuring that out