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

sshd plugin v3.0.4 and later causes CLI "console" command to hang

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • other
    • None

      Steps to reproduce (success case first):

      • Run container with jenkins.war 2.332.1 only (no additional plugins), enable sshd plugin v3.0.3 (detached version for this war) and dependencies shown above.
      • One-time setup on initial install: Create first admin user. Add ssh public key to that user's config page. Configure Global Security page: set SSHD Port to fixed, portNumber. Create freestyle "test_job" with arbitrary stdout output and build it.
      • From local host shell (as first admin user):

           ssh -p portNumber local-hostname console test_job

                Console log of "test_job" (latest build) is output, then shell prompt returns.

      Then (failure case):

      • Stop container. Re-build it, adding any sshd plugin >= v3.0.4. (e.g., 3.228.v4c9f9e652c86), then run the container. Wait for "Jenkins is fully up and running" log message.
      • Repeat ssh command above. Console log of "test_job" is output, then no shell prompt returns; must Ctrl-C to terminate ssh command.

      Note: hang also occurs when running "java -jar jenkins-cli.jar ... console JOB" in a build step on a containerized Jenkins controller (run either by podman or by kubectl).

      P.S. Component set to "other" because "sshd" component is not defined.

            Unassigned Unassigned
            gdameron Gregg Dameron
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: