You may run into this error for a couple of reasons:
1. Your config file does not have a single job called
2. You are trying to run a workflow from the API, and no job called
build exists in your config file. More on trigging a workflow with the API can be found here.