multibranch管道作业即使下游完成建设也不会启动构建步骤

时间:2018-06-12 17:18:44

标签: jenkins jenkins-pipeline multibranch-pipeline

我使用jenkinsfile运行一个多分支管道,我得到了'调度项目:caiwu»sis-server-test',但是没有'开始构建:'出现在工作sis-test funish building之前,谁可以帮我一把?

pipeline{
    agent {label 'test-slave'}      
    stages{
        stage('deploy'){
            steps{
                echo 'deploy...'
                build job:'/folder/sis-test', propagate: true, wait: true                
            }            
        }

    }
}

here are the build log
[Pipeline] script
[Pipeline] {
[Pipeline] build (Building caiwu » sis-server-test)
Scheduling project: caiwu » sis-server-test
Aborted by ***
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage

1 个答案:

答案 0 :(得分:0)

你的问题很难理解。如果问题是您不希望它等待作业,那么您当前的行:

RewriteRule ^blog/forums/ /knowledge [R,L]

需要更改为

build job:'/folder/sis-test', propagate: true, wait: true