Hello,
Am using parameters( [ . . . ] ) inside the pipeline script to define the values for the various parameters. These params are used while invoking packer tool.
properties([
parameters([
string(name: 'region', defaultValue: 'us-west-2', description: ''),
text(defaultValue: '"us-west-2, us-west-1"', description: '', name: 'ami_regions')
])
])
For the packer tool, among other variables, I need to pass multiple region names, like this,
packer -var ami_regions="us-west-2, us-west-1" . . .
Am able to access them like, ${params.ami_regions} but then the double quote is missing and the input to packer cmd is partial i.e. us-west-1 is missed out.
Does anybody know why is this ? And, is there a better way to handle this, via some groovy script embedded within the pipeline ?
--
regards
Ram