jenkins 串行构建job方法

  1. 设置Build Triggers
Build after other projects are built (Trigger even if the build fails)
  1. 配置Pipeline
pipeline{
    agent any
    options{
        timestamps()
    }
    stages{
        stage('case1'){ 
            steps{
                echo "run build"
                build job:'test'
            }
        }
        
        stage('case2'){ 
            steps{
                echo "run build"
                build job:'test'          
            }
        }
  
    }
}
原文地址:https://www.cnblogs.com/amize/p/14735647.html