jenkins-script: Adapt to new branch style build