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

Console output gets messed up when using file operations in a pipeline job

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • file-operations-plugin
    • None
    • Jenkins 2.225

      Sample pipeline code:

      stage("Test-fileOperations") {
      	node("master") {
      		fileOperations([
      			fileDownloadOperation(targetFileName: "file1.zip", targetLocation: ".", url: "https://url/to/file1.zip", userName: "", password: ""),
      			fileUnZipOperation(filePath: "file1.zip", targetLocation: "C:\\path\\to\\dir1"),
      			fileDownloadOperation(targetFileName: "file2.zip", targetLocation: ".", url: "https://url/to/file2.zip", userName: "", password: ""),
      			fileUnZipOperation(filePath: "file2.zip", targetLocation: "C:\\path\\to\\dir2"),
      		])
      	}
      }
      

       When executing the console output looks like this:

      [Pipeline] {
      [Pipeline] fileOperations
      File Download Operation:
      Unzip File Operation:
      Started downloading file from https://url/to/file1.zip
      Completed downloading file.
      Unzipping file1.zip to C:\path\to\dir1
      File Download Operation:
      Started downloading file from https://url/to/file2.zip
      Unzip completed.
      Unzip File Operation:
      [Pipeline] }
      [Pipeline] // node
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] End of Pipeline

      As you can see the console output got messed up. The line "Unzipping file2.zip to C:\path\to\dir2" is even missing.

      When doing the same operations using a classic Jenkins freestyle job the console output is properly ordered.

            pskumar448 Suresh Kumar
            wolterhis Lars
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: