In a declarative pipeline, I can specify the parameter that the pipeline expects right in the pipeline script like so:
pipeline { parameters([ string(name
I found a solution by experimentation so want to share it:
node { properties( [ parameters( [string(defaultValue: '/data', name: 'Directory'), string(defaultValue: 'Dev', name: 'DEPLOY_ENV')] ) ] ) .... }