Closed shrivastavshubham34 closed 4 years ago
I'm trying to pass parameters to AWS codebuild environment variable using $params.VAR1. But it doesn't take the value.
script{ println params.VAR1 }
above prints abcdefg as output. But when I pass the same variable to CodeBuild in the pipeline script (same stage) like below. I don't get the value
envVariables: '[{buildversion, $(params.VAR1)},{source, jenkins}]', environmentTypeOverride: '',
Figured it out! We just use VAR1 instead of params.VAR1
I'm trying to pass parameters to AWS codebuild environment variable using $params.VAR1. But it doesn't take the value.
above prints abcdefg as output. But when I pass the same variable to CodeBuild in the pipeline script (same stage) like below. I don't get the value