Fixes wonky branch logic
Fixes wonky branch logic

The job is in the format of pipeline-name/branch-name. Special characters
are encoded:

feature/codedeploy -> the-train/feature%2Fcodedeploy

Carboni/the-train-destination,Carboni/The-Train,Carboni/The-Train,ONSdigital/The-Train,Carboni/the-train-destination,ONSdigital/The-Train