Cannot find a job named `build` to run in the `jobs:` section

We have a version 2.1 setup that works well. But I want to make some changes and test that they work locally. circleci build tells me that the format is wrong. So I have done

circleci config process .circleci/config.yml> .circleci/config2.yml
circleci build --config .circleci/config2.yml

and get the error in the title.

My config2.yml looks like


I’m trying to solve this without overloading further our devops person and know very very little about CI so all simple help is welcome

Hey @simonh1000 - would you mind adding version: 2 to the workflow section? It should look something like this:

  version: 2

This should allow this section to be picked up

Hi @gmemstr. Whoops I had deleted that at some stage while trying to find a solution. I did indeed start with the version 2 and had the problem at that stage too. Here’s what I just tested and which exhibits the same issue