Hi. I need to have a pipeline that I can trigger manually via API v2 and send from API some environmental variables as parameters. I have something like this in my config.yml
version: 2.1
setup: true
parameters:
trigger_process_api:
type: boolean
default: false
some_name:
type: string
default: ""
orbs:
path-filtering: circleci/path-filtering@0.0.3
continuation: circleci/continuation@0.1.2
workflows:
setup:
unless: << pipeline.parameters.trigger_process_api >>
jobs:
- path-filtering/filter:
base-revision: main
mapping: |
some_dir/.* trigger_some_workflow true
config-path: .circleci/workflows.yml
trigger_process_api:
when: << pipeline.parameters.trigger_process_api >>
jobs:
- continuation/continue:
pre-steps:
- checkout
configuration_path: .circleci/workflows.yml
parameters: '{"trigger_process": true, "some_name": ""}'
my .circleci/workflow.yml is looking like that:
version: 2.1
parameters:
some_name:
type: string
default: fillme
trigger_process:
type: boolean
default: false
trigger_process_api:
type: boolean
default: false
jobs:
docker:
-some_image
steps:
- run:
name: run script with some_name env
command: |
echo "$some_name"
I need to pass the parameter as an environmental variable from API through config.yml and continuation orb to workflow.yml. Is this even possible?
trigger trigger_process_api is working fine, but the some_name isn’t working correctly.