Circle ci build queued forever

The below is the config.yml. The circle ci always tells that it is queued, but it doesnt run or doesnt error out. I have tried cancelling the build but again its queue.

# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
  build:
    docker:
      # specify the version you desire here
      - image: circleci/node:7.10

      # Specify service dependencies here if necessary
      # CircleCI maintains a library of pre-built images
      # documented at https://circleci.com/docs/2.0/circleci-images/
      # - image: circleci/mongo:3.4.4

    working_directory: ~/repo

    steps:
      - checkout

      # Download and cache dependencies
      - restore_cache:
          keys:
            - v1-dependencies-{{ checksum "package.json" }}
            # fallback to using the latest cache if no exact match is found
            - v1-dependencies-

      - run: npm install

      - save_cache:
          paths:
            - node_modules
          key: v1-dependencies-{{ checksum "package.json" }}

      # run tests!
      - run: npm test
      - run: echo hello testjx
1 Like

It seems there might be an incomplete configuration in your .yml file. Ensure that you have the necessary steps and commands to execute within your CircleCI job. Below is a revised version of your configuration with placeholders for missing parts:

# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
  build:
    docker:
      # specify the version you desire here
      - image: circleci/node:7.10

      # Specify service dependencies here if necessary
      # CircleCI maintains a library of pre-built images
      # documented at https://circleci.com/docs/2.0/circleci-images/
      # - image: circleci/mongo:3.4.4

    working_directory: ~/repo

    steps:
      - checkout

      # Download and cache dependencies
      - restore_cache:
          keys:
            - v1-dependencies-{{ checksum "package.json" }}

      - run:
          name: Install Dependencies
          command: npm install

      - save_cache:
          paths:
            - node_modules
          key: v1-dependencies-{{ checksum "package.json" }}

      # Add your build and test steps here

      # Example:
      - run:
          name: Run Tests
          command: npm test

Make sure to fill in the missing parts related to your specific build and test commands. Additionally, ensure that your configuration is properly indented and free of syntax errors. If the issue persists, you may want to check CircleCI’s documentation or seek assistance from their support channels for further troubleshooting, Here are some great places to learn: 1. W3 School 2. Iqra Technology 3. JavaPoint

While you have defined a job called build you have not defined a workflow that calls the job.

A full example can be found here