Jenkins 运行 按顺序从数组中捍卫阶段

Jenkins Running defended stages in serial order from array

我目前得到了一个数组,其中定义了 运行n 个并行的构建阶段

def build_stages =[:]

build_stages["one"]={echo "one"}
build_stages["two"]={echo "two"}
build_stages["three"]={echo "three"}

parallel build_stages

显然那些阶段运行并行

是否有语法选项可以允许 运行 将这些阶段作为序列 运行?

build_stages["one"] --> build_stages["two"] --> build_stages["three"]

来自@Patrice M build_stages.each { 它 -> it.call() }