Adding release name to the build key output (if provided). (#12201)