0
如何在Jenkins2.0 Pipeline項目中並行運行兩個階段。 例如:在下面的代碼中,我想運行兩個並行運行的階段,即「Build_First_Repo」和「Build_Second_Repo」應該並行運行。如何在Jenkins2.0管道項目中並行運行兩個階段
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}
}
我試圖使用「並行」關鍵字,但它沒有奏效。