I am facing an issue where the version of circle.yml used by the build is intermittently switching between 1 and 2. I have made multiple changes to circle.yml. Once some changes made in circle.yml caused the version to change from 2 to 1, I reverted them all one by one and reached the exact same contents of circle.yml file but the build continues to used version 1 now. I also changed the file by taking exactly the old file from the VCS to avoid whitespace / formatting issues. Still I see the same file of circle.yml has triggered version 1 and 2 in different cases.
It seems there is some caching of the circle.yml file causing the intermittentness.