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

jenkins windows cmd process never stops

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • durable-task-plugin
    • None
    • jenkins windows 2.x versions

      Please assist.  Thank you for reading!

      We have a simple jenkins job that runs a .bat or dos cmd file.  "execute windows batch command"

      c:\test.bat
      exit /b

      The job runs on a schedule but each time it creates a cmd process (see screenshot). These cmd process never end, even after the job ends. They become like zombies and hang around forever. Eventually, we get 20 or more of them which impact our QA tests. To avoid having this happen to the master jenkins server we often run most of our jobs on windows slaves and this problem still happens.  The slaves are running windows 10 and often in the slave console mode so the slave runs in a cmd window and not as service. That means if we just kill all the cmd's we also risk killing the slave node.  I think this is a bug. If it worked correctly after a time the cmd's would go away once the job is complete.  I see no way to make this happen now.  Right now  every run of the job creates a cmd that sticks around forever. Please assist. Thank you.

       

       

       

       

       

       

       

            kohsuke Kohsuke Kawaguchi
            heropurpose D S
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: