-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
Active Choices Plug-in
Version2.7.2, Jenkins Version 2.414.1
I want to run this script in order to get aws ecr repositories:
def profile = "ecr"
def region = "us-east-1"
def cmd_output = "aws ecr describe-repositories --region $region --output yaml".execute()
def awk_cmd_output = cmd_output | ['awk', '/repositoryName:/ \{print $2}'].execute()
def repo_names = awk_cmd_output.text.tokenize().reverse()
return repo_names
Before 2 months this script was working fine but into the latest version it's no longer working.