Hey there, I am looking for a way to check if the running build is executed on branch or plan level. Preferably in powershell script. Task at hand is to use a plan branch name if build is using a plan branch otherwise it should use the planKey as a folder in output directory. Since the bamboo.shortPlanName always exists even when the build is using the plan, just checking if the variable is null or empty is not enough.