Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-72005

Cannot run Groovy script to list aws ecr repositories


    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • active-choices-plugin
    • 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.


            kinow Bruno P. Kinoshita
            peter_penzov Peter
            0 Vote for this issue
            2 Start watching this issue