I’m facing issues while migrating CircleCi 1.0 to CircleCI 2.0. I have created circle.yml which is working perfectly for CircleCI 1.0. Can some body help me to create .circleci/config.yml for Circle CI 2.0.
Thanks in advance
My circle.yml file:
test:
override:
- ant -f builds/build.xml -lib build/lib/ deploy:
timeout: 600
general:
branches:
only:
- master # list of branches to build
Build-agent version 0.0.6918-3a2a4e2 (2018-06-22T13:50:16+0000)
Configuration errors: 2 errors occurred:
Error parsing config file: yaml: line 8: mapping values are not allowed in this context
Cannot find a job named build to run in the jobs: section of your configuration file.
If you expected a workflow to run, check your config contains a top-level key called ‘workflows:’
Please fix your YAML first in the above post, so I can delete my advice. It really is wrong at present (your YAML will produce a different data structure to the one that is required).