我在Jenkins中构建了四个iOS框架。作业是sdk_ios_f1,sdk_ios_f2,sdk_ios_f3和sdk_ios_f4。有一个使用这些框架的xcode项目。这是sdk_ios_p。
我想创建一个Jenkins管道,它将按顺序构建这些作业:
pipeline {
agent any
stages {
stage('Desc1') {
steps {
dir('/Users/Shared/Jenkins/Home/workspace/') {
build job: 'sdk_iOS_f1', quietPeriod: 5
build job: 'sdk_iOS_f2', quietPeriod: 5
}
}
}
stage('Desc2') {
steps {
dir('/Users/Shared/Jenkins/Home/workspace/') {
build job: 'sdk_iOS_d3', quietPeriod: 5
build job: 'sdk_iOS_f4', quietPeriod: 5
}
}
}
}
}
这两个阶段显示在Jenkins页面上,管道启动但它永远不会超过安排第一个构建(sdk_ios_f1)。
请按照列出的顺序运行作业需要做什么?
Started by user Smith Smith
[Pipeline] node
Running on Jenkins in
/Users/Shared/Jenkins/Home/workspace/pipeline_all_develops
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Desc1)
[Pipeline] dir
Running in /Users/Shared/Jenkins/Home/workspace
[Pipeline] {
[Pipeline] build (Building sdk_iOS_f1)
Scheduling project: sdk_iOS_f1
(永远不会过去)
答案 0 :(得分:0)
固定!哈哈。只有一个执行者,所以管道阻塞了所有其他人。我添加了一个遗嘱执行人,一切都很好。