Config.yml (2.1) - says I'm not passing a required parameter

I’m trying to use a command parameter. When running, CircleCI says I didn’t pass the parameter. I’m using this as my reference: https://circleci.com/docs/2.0/reusing-config

My config looks like this:

version: 2.1
orbs:
  python: circleci/python@0.2.1

commands:
  install_ndingest:
    description: "Get ndingest from GitHub"
    parameters:
      pyversion:
        type: string
    steps:
      - run: rm -rf /home/circleci/.local/lib/<< parameters.pyversion >>/site-packages/ndingest
      - run: git clone https://github.com/jhuapl-boss/ndingest.git /home/circleci/.local/lib/<< parameters.pyversion >>/site-packages/ndingest

  install_spdb:
    description: "Clone spdb and install"
    parameters:
      pyversion:
        type: string
    steps:
      - run: git clone https://github.com/jhuapl-boss/spdb.git
      - run: cd spdb && python setup.py build_ext --inplace
      - run: rm -rf /home/circleci/.local/lib/<< parameters.pyversion >>/site-packages/spdb
      - run: mv spdb/spdb /home/circleci/.local/lib/<< parameters.pyversion >>/site-packages

  install:
    description: "Install Python dependencies"
    parameters:
      pyversion:
        type: string
    steps:
      - checkout
      - python/load-cache
      - python/install-deps
      - install_ndingest:
        pyversion: << parameters.pyversion >>
      - install_spdb:
        pyversion: << parameters.pyversion >>
      - python/save-cache

  test_activities:
    description: "Test the step function activitities"
    steps:
      - run: python3 -m unittest discover activities

  test_bossutils:
    description: "Test the bossutils code"
    steps:
      - run: python3 -m unittest discover bossutils
    
  test_cachemgr:
    description: "Test the cache manager code"
    steps:
      - run: python3 -m unittest discover cachemgr

  # ToDo: still need to figure out how we want to link bossnames to
  # boss-manage/lib.
  test_lambdafcns:
    description: "Test the lambda functions"
    steps:
      - run: python3 -m unittest discover lmbdtest

jobs:
  test_py3_5:
    docker:
      - image: circleci/python:3.5
    steps:
      - install:
        pyversion: python3.5
      - test_activities
      - test_bossutils
      - test_cachemgr
      #- test_lambdafcns

workflows:
  #version: 2
  test:
    jobs:
      - test_py3_5

CircleCI says I’m not passing pyversion to to my install command. Any hints?

Thanks in advance,
Tim

In case anyone has the same problem, support told me to indent my parameters one more level after the step. For example:

jobs:
  test_py3_5:
    docker:
      - image: circleci/python:3.5
    steps:
      - install:
          pyversion: python3.5
      - test_activities

Tim

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