I’m trying to use a Jenkins Active Choice Reactive Parameter and using Groovy to run an aws kms cli command, but the value doesn’t seem to be returning. I’ve looked at the couple other posts around using aws cli in Groovy but none of them resolve my issue. I’m not a Java developer by any means so any help is welcomed. If I use the code below with a “ls” command then the value is being populated in the parameter.
def command = "aws kms decrypt --query Plaintext --output text --ciphertext-blob fileb://<(echo 'my-cipher' | base64 -d') | base64 -d".execute() command.waitFor() return [command.text]
Thanks in advance for any help