我们希望使用单个Jenkins作业来构建应用程序。配置Jenkins作业以从SVN中选择应用程序和干线/标签/分支
从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?节目供选择这样的:
- trunk
- branches/app1 个
- 分支/ APP 2
- 分支/ APP3
- 标签/ APP1
- 标签/ APP 2
- 标签/ APP3
我们想什么有如下:
选择1:
- app1
- APP2
- APP3
选择2(自动基于所述选择1,例如对于应用2):
- 干线
- BRANCH_D
- BRANCH_E
- BRANCH_F
- TAG_D
- TAG_E
- TAG_F