Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logs of parallel task are disordered

I run several tasks parallel but their logs were printed parallel.
It's hard to understand.

groovy dsl:

parallel (
  "stream1": { 
    node { ... }
  },
  "stream2": { 
    node("remote") { ... }
  }
)

logs:

[stream1] [workspace] Running shell script 1
[stream2] [workspace] Running shell script 2
[stream2] [workspace] Running shell script 3
[stream1] [workspace] Running shell script 4

I want to make these logs readable. Any ideas how to separate them?

like image 236
myregister0618 Avatar asked May 17 '16 03:05

myregister0618


1 Answers

EDIT: I just realised this is answered here: How to get stdout and stderr from single Jenkins Pipeline parallel blocks?

  1. Go to your build page e.g. "Jenkins > BUILD_NAME > #163"
  2. In the sidepanel click "Pipeline Steps".
  3. You should see a layout of all the steps in the pipeline and each can be queries for logs (click the terminal icon) and should have status indicators too.
like image 198
Harry Mallon Avatar answered Nov 09 '22 10:11

Harry Mallon