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

Jenkins-cli groovycommand does not return stdout (regression in 2.427)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • cli, core
    • 2.429

    Description

      After upgrading from 2.426 to 2.427 stdout and stderr is no longer returned to the client.

      I started a fresh Jenkins, and created an admin account, downloaded the jenkins-cli.jar and ran a simple command, that should write Hello! on the terminal.

      docker run -p 8080:8080 jenkins/jenkins:2.427-jdk17
      wget http://localhost:8080/jnlpJars/jenkins-cli.jar
      echo 'println "Hello!"' | java -jar jenkins-cli.jar -auth admin:admin -s http://localhost:8080/ groovy =
      

      It appears to be related til https://issues.jenkins.io/browse/JENKINS-41516, and creating a logger for jenkins.util.DefaultScriptListener results in rather large stacktraces everytime any output is generated for a script.

      Attachments

        Issue Links

          Activity

            People

              danielbeck Daniel Beck
              pagerbak Per Agerbæk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: