【发布时间】:2017-05-23 19:29:51
【问题描述】:
我们想使用单个 Jenkins 作业来构建应用程序。
How to configure a single Jenkins job to make the release process from trunk or branches? 的解决方案不起作用,因为我们的 SVN 结构不同(由于历史原因,我们无法更改):
http://my-svn-repo/projects/
├───branches
│ ├───app1
│ │ ├───BRANCH_A
│ │ ├───BRANCH_B
│ │ └───BRANCH_C
│ ├───app2
│ │ ├───BRANCH_D
│ │ ├───BRANCH_E
│ │ └───BRANCH_F
│ └───app3
│ ├───BRANCH_G
│ ├───BRANCH_H
│ └───BRANCH_I
├───tags
│ ├───app1
│ │ ├───BRANCH_D
│ │ ├───BRANCH_E
│ │ └───BRANCH_F
│ ├───app2
│ │ ├───TAG_D
│ │ ├───TAG_E
│ │ └───TAG_F
│ └───app3
│ ├───TAG_G
│ ├───TAG_H
│ └───TAG_I
└───trunk
├───app1
├───app2
└───app3
所描述的解决方案How to configure a single Jenkins job to make the release process from trunk or branches? 显示供选择:
- 主干
- 分支机构/app1
- 分支机构/app2
- 分支机构/app3
- 标签/app1
- 标签/app2
- 标签/app3
我们想要的如下:
选择 1:
- app1
- app2
- app3
选择 2(自动基于选择 1,例如对于 app2):
- 主干
- BRANCH_D
- BRANCH_E
- BRANCH_F
- TAG_D
- TAG_E
- TAG_F
【问题讨论】:
标签: svn jenkins build jenkins-plugins hudson