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

Groovy script using command.execute() never finishes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • groovyaxis-plugin
    • Win7, Jenkins 1.451, groovyaxis 0.2

      The groovy script listed below keeps running for ever, without yielding a result. Seen when clicking the "test the groovy script" button.

      def command = ["dir"]
      def proc = command.execute()
      proc.waitFor()
      def output = "${proc.in.text}".split(/\n/)
      return output

            emanuelez emanuelez
            kd_jm kd Jm
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: