[Shared library] Global variables in parallel

34 views
Skip to first unread message

Maciej Gąsiorowski

unread,
Sep 26, 2017, 10:15:19 AM9/26/17
to Jenkins Users
Hi, 

I have shared library with global variables as stages (https://jenkins.io/doc/book/pipeline/shared-libraries/#defining-a-more-structured-dsl):

+ src
+ vars
  
- stage1.groovy
  
- stage2.groovy
  
- stage3.groovy

I is possible to create library to run them in parallel, something like this (or something similiar) - Jenkinsfile:

parallelStages {
  stage1
{
    argument
= "test1"
 
}
  stage2
{
    argument
= "test2"
 
}
  stage3
{
    argument
= "test3"
 
}
}

Or is there anothey way to agregate such stages and execute them in parallel ?

I've tried different things but they do not work.

Regards,
Maciek
Reply all
Reply to author
Forward
0 new messages