api-preview-docs icon indicating copy to clipboard operation
api-preview-docs copied to clipboard

Invalid conditional workflow example

Open ilyapuchka opened this issue 6 years ago • 0 comments
trafficstars

In the example for conditional workflow there is a job that is conditionally added to the workflow based on parameter

workflows:
  version: 2
  integration_tests:
    when: << pipeline.parameters.run_integration_tests >>
    jobs:
      - mytestjob
      - when:
          condition: << pipeline.parameters.deploy >>
          steps:
            - deploy

On practice though this results in the invalid configuration: Cannot find a definition for job named when when validated with circleci 0.1.5830+2bb45a0

ilyapuchka avatar Sep 03 '19 16:09 ilyapuchka