I’ve got a pipeline that currently allows the parallelism of a specific job to be configurable via a pipeline parameter. I’d like to have a workflow be able to override this when running the job. When I try to use the pipeline parameter as the default for the job parameter (to be backwards compatible) I get a validation error: Parameter error: default value of parameter 'containers-count' is '<< pipeline.parameters.containers-count >>' (type string): expected type integer. I guess << >> always interpolates as a string?
Any way to force it to interpolate as an integer or switch the type to a string and coerce into an integer when used in the final parallelism field?
parameters:
sample-job-containers-count:
type: integer
default: 120
jobs:
sample-job:
properties:
containers-count:
type: integer
default: << pipeline.parameters.sample-job-containers-count >>
parallelism: << parameters.containers-count >>