Configuration issue - json: cannot unmarshal string into Go value of type config.JobDescription

circle.yml

#1

I tried to migrate my circleci config from 1.0 to 2.0.

I check for the configuration validation and it’s valid.

However, I don’t know why it thrown the 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

This is the content of the .circleci/config.yml file


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

#2

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.