• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • durable-task-plugin
    • Jenkins ver. 1.658
      Durable Task Plugin 1.12
      Windows Slaves (got the bug on Windows 7 and Windows 10)

      This is somewhat hard to reproduce.

      Sometimes the output of a bat step is truncated. Given the following pipeline script :

      node("Windows") {
          def output = bat returnStdout: true, script: "some_program"
          echo output
      }
      

      some_program outputs a file path, say C:\Jenkins\workspace\Project\file.zip

      Instead, this prints something like C:\Jenk or C:\Jenkins\workspace\Project\fil for instance.

      I use the following work around

      node("Windows") {
          bat script: "some_program > stdout"
          def output = readFile("stdout")
          echo output
      }
      

      Which always work.

          [JENKINS-40811] output of batch step is truncated

          Jesse Glick added a comment -

          Any known way to reproduce?

          Jesse Glick added a comment - Any known way to reproduce?

          Marco Tizzoni added a comment - - edited

          Same issue here with Jenkins 2.66 and Windows 2012.

           

          Marco Tizzoni added a comment - - edited Same issue here with Jenkins 2.66 and Windows 2012.  

            Unassigned Unassigned
            cblegare Charles Bouchard-Légaré
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: