CircleCI 2.0的configuration问题 – json:不能将string解组成Gotypes的config.JobDescriptiontypes的值

我试图将我的circleciconfiguration从1.0迁移到2.0。

我检查configurationvalidation,它是有效的。

但是,我不知道为什么会抛出exception:

Build-agent version 0.0.3610-dadc4d7 (2017-07-14T02:27:51+0000) Configuration errors: 1 error occurred: * json: cannot unmarshal string into Go value of type config.JobDescription 

这是.circleci/config.yml文件的内容

 version: 2 jobs: build: working_directory: ~/myproject environment: TZ: "/usr/share/zoneinfo/Asia/Ho_Chi_Minh" docker: - image: circleci/node:6.2.0 - image: circleci/java:openjdk8 steps: - run: name: Update $PATH variable command: echo 'export PATH=${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin' >> $BASH_ENV - run: name: Install dependencies command: | sudo apt-get update; sudo apt-get install antiword python-dev mkdir -p webpack/build/ && echo '{}' > webpack/build/manifest.base.json && echo '{}' > webpack/build/manifest.extend.json yarn pip install -r requirements.txt pip list yarn list --depth 0 - save_cache: key: dependency-cache paths: - ~/.cache/yarn - store_artifacts: path: ahirea/coverage.xml - run: name: Test command: | yarn test make lint-python make test-py-small make test-py-medium - deploy: command: | docker login -e $DOCKER_EMAIL -u $DOCKER_USERNAME -p $DOCKER_PASS #...other deploy command