When the Spec is empty, don't use it. Also removes some duplicate code, and passes job-name to the right places.
When the Spec is empty, don't use it. Also removes some duplicate code, and passes job-name to the right places.

circleci/frontend,prathamesh-sonpatki/frontend,circleci/frontend,RayRutjes/frontend,prathamesh-sonpatki/frontend,circleci/frontend,RayRutjes/frontend