[JENKINS-16334] Change to store label

Get master label rather than fixed string