How can we run two stages in parallel in Jenkins2.0 Pipeline project. For ex: in the following code i want to run the two stages to run in parallel i.e. "Build_First_Repo" and "Build_Second_Repo" should run in parallel.
stage "Build_First_Repo"
node { sh '''echo 'Build first repo'
source ~/.bashrc'''
export path_to_perl_library="/path/to/perl/lib/perl5/5.8.8"
perl -I <include_files> build_first_view.pl --inputfile ${input_params}
}
stage "Build_Second_Repo"
node { sh '''echo 'Build second repo'
source ~/.bashrc'''
export path_to_perl_library="/path/to/perl/lib/perl5/5.8.8"
perl -I <include_files> build_second_view.pl --inputfile ${input_params}
}
I tried to use the "parallel" keyword but it didnt work.