Cannot run Groovy script to list aws ecr repositories

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Critical
    • Component/s: active-choices-plugin
    • None
    • Environment:
      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.

       

            Assignee:
            Bruno P. Kinoshita
            Reporter:
            Peter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: