parse job from yaml file