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'          
            }
        }
  
    }
}
posted @ 2021-05-06 16:13  该显示昵称已被使用了  阅读(248)  评论(0编辑  收藏  举报