-
Bug
-
Resolution: Unresolved
-
Major
-
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.