Run 2 declarative pipelines in parallel

5 views
Skip to first unread message

Mahammad Azeem

unread,
Sep 22, 2022, 3:12:49 AM9/22/22
to Jenkins Pipeline Authoring SIG
hi Jenkins team,

I would want to know is there any way to run 2 declarative pipelines using parallel construct ?

parallel (
     "stream 1" : { ... things ...  },
     "stream 2" : { ... things in parallel ... }
   )
  
This syntax can only use "node"  but cannot use "pipeline". Like below

(1) parallel (
 "stream 1" : {
node .......
},
"stream 2" : {
node .......
}
)

(2) parallel (
 "stream 1" : {
pipeline.......
},
"stream 2" : {
pipeline.......
}
)

(1) is working fine (2) is not working. My requirement is to use (2). Because, post build actions(success/failure/abort etc) are supported in only (2) not (1) 

In (1) i don't want to include exception handling logic (try / catch) in (1).

Please assist.
Reply all
Reply to author
Forward
0 new messages