1

i need to withcredntails i am storing my AWS keys in Jenkins credentials

def command = 'aws acm list-certificates --query "CertificateSummaryList[?DomainName=='*.osdemo.cf'].CertificateArn" --output text'
def proc = command.execute()
proc.waitFor()              

def output = proc.in.text
def exitcode= proc.exitValue()
def error = proc.err.text

if (error) {
    println "Std Err: ${error}"
    println "Process exit code: ${exitcode}"
    return exitcode
}

//println output.split()
return output.tokenize()
Andrej Istomin
  • 2,527
  • 2
  • 15
  • 22
sammahi
  • 23
  • 6

0 Answers0