Try to search your question here, if you can't find : Ask Any Question Now ?

Executing a AWS KMS command with Groovy in a Jenkins Active Choice Reactive Parameter

HomeCategory: stackoverflowExecuting a AWS KMS command with Groovy in a Jenkins Active Choice Reactive Parameter
Avatarpushpa asked 4 months ago

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

1 Answers
Best Answer
AvatarJyoti answered 4 months ago
Your Answer

11 + 0 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com