4b7d7b54a86b4c3630d2c575be78203c04c76fa9
[ci-management.git] / jjb / trex / trex.yaml
1 - project:
2     name: trex
3     jobs:
4         - 'trex-verify-{stream}-{os}'
5         - 'trex-merge-{stream}-{os}'
6
7     project: 'trex'
8     os:
9         - ubuntu1404
10         - ubuntu1604
11         - centos7
12
13     stream:
14         - master:
15             branch: 'master'
16
17
18 - job-template:
19     name: 'trex-verify-{stream}-{os}'
20
21     project-type: freestyle
22     node: '{os}-basebuild-4c-4g'
23     concurrent: true
24
25     logrotate:
26         daysToKeep: '{build-days-to-keep}'
27         numToKeep: '{build-num-to-keep}'
28         artifactDaysToKeep: '{build-artifact-days-to-keep}'
29         artifactNumToKeep: '{build-artifact-num-to-keep}'
30
31     parameters:
32         - project-parameter:
33             project: '{project}'
34         - gerrit-parameter:
35             branch: '{branch}'
36         - os-parameter:
37             os: '{os}'
38
39     scm:
40         - gerrit-trigger-scm:
41             credentials-id: 'jenkins-gerrit-credentials'
42             refspec: '$GERRIT_REFSPEC'
43             choosing-strategy: 'gerrit'
44
45     wrappers:
46       - fdio-infra-wrappers:
47           build-timeout: '{build-timeout}'
48
49     triggers:
50         - gerrit-trigger-patch-submitted:
51             name: '{project}'
52             branch: '{branch}'
53
54     builders:
55         - shell:
56             !include-raw-escape: include-raw-trex-build.sh
57
58     publishers:
59       - fdio-infra-shiplogs:
60           maven-version: 'mvn33-new'
61
62 - job-template:
63     name: 'trex-merge-{stream}-{os}'
64
65     project-type: freestyle
66     node: '{os}-basebuild-4c-4g'
67     concurrent: true
68
69     logrotate:
70         daysToKeep: '{build-days-to-keep}'
71         numToKeep: '{build-num-to-keep}'
72         artifactDaysToKeep: '{build-artifact-days-to-keep}'
73         artifactNumToKeep: '{build-artifact-num-to-keep}'
74
75     parameters:
76         - project-parameter:
77             project: '{project}'
78         - gerrit-parameter:
79             branch: '{branch}'
80         - os-parameter:
81             os: '{os}'
82
83     scm:
84         - gerrit-trigger-scm:
85             credentials-id: 'jenkins-gerrit-credentials'
86             refspec: '$GERRIT_REFSPEC'
87             choosing-strategy: 'gerrit'
88
89     wrappers:
90       - fdio-infra-wrappers:
91           build-timeout: '{build-timeout}'
92
93     triggers:
94         - gerrit-trigger-patch-merged:
95             name: '{project}'
96             branch: '{branch}'
97
98     builders:
99         - shell:
100             !include-raw-escape: include-raw-trex-build.sh
101
102     publishers:
103       - fdio-infra-shiplogs:
104           maven-version: 'mvn33-new'