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

some command can't exit in the execute windows batch command (praqma case 9630)

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • durable-task-plugin
    • None

      My jenkins version is ver. 1.493 .
      the command can run in cmd model and can normally end. you can see the log1 below.
      But I put the command into the execute windows batch command, and then I run the job,the job hold on and can't end wait for long times. You can see the log2 below. I manually execute the bat file "C:\Users\Admin\AppData\Local\Temp\hudson9214056810875413252.bat" in cmd model . it can end.

      – log1
      C:\Users\Admin>PSEXEC -accepteula -s
      GPS68 SCHTASKS /QUERY /TN "\GOPP\SDT" |findstr "Disabled"

      PsExec v1.98 - Execute processes remotely
      Copyright (C) 2001-2010 Mark Russinovich
      Sysinternals - www.sysinternals.com

      Starting SCHTASKS on GPS68 ...GPS68 ...
      SCHTASKS exited on GPS68 with error code 0.
      SDT Disabled

      --log2
      [workspace] $ cmd /c call C:\Users\Admin\AppData\Local\Temp\hudson9214056810875413252.bat

      D:\Jenkins\jobs\tsd_test\workspace>PSEXEC -accepteula
      GPS68 SCHTASKS /QUERY /TN "\GOPP\SDT" | findstr "Disabled"

      PsExec v1.98 - Execute processes remotely
      Copyright (C) 2001-2010 Mark Russinovich
      Sysinternals - www.sysinternals.com

        1. buildlog.jpg
          buildlog.jpg
          22 kB
        2. buildred.jpg
          buildred.jpg
          7 kB
        3. hudson6148162320693807782.bat
          0.1 kB
        4. jenkinsbuildlog.txt
          0.5 kB
        5. log.txt
          0.0 kB

          [JENKINS-18507] some command can't exit in the execute windows batch command (praqma case 9630)

          dzy dzy created issue -
          Jens Brejner made changes -
          Summary Original: some command can't exit in the execute windows batch command New: some command can't exit in the execute windows batch command (praqma case 9630)
          Lars Kruse made changes -
          Component/s New: windows-exe-runner [ 17518 ]
          Lars Kruse made changes -
          Component/s New: batch-task [ 15505 ]
          Component/s Original: component [ 17327 ]
          Component/s Original: windows-exe-runner [ 17518 ]
          Assignee Original: Praqma Support [ praqma ]
          dzy dzy made changes -
          Attachment New: buildred.jpg [ 23829 ]
          Attachment New: buildlog.jpg [ 23830 ]
          Attachment New: hudson6148162320693807782.bat [ 23831 ]
          Attachment New: log.txt [ 23832 ]
          Attachment New: jenkinsbuildlog.txt [ 23833 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 149814 ] New: JNJira + In-Review [ 177479 ]
          lacostej made changes -
          Component/s New: durable-task-plugin [ 18622 ]
          Component/s Original: batch-task-plugin [ 15505 ]

            Unassigned Unassigned
            dzyjl dzy dzy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: