trex.yaml revision 3ac86ace
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: 'verify-{os}'
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- job-template:
59    name: 'trex-merge-{stream}-{os}'
60
61    project-type: freestyle
62    node: 'verify-{os}'
63    concurrent: true
64
65    logrotate:
66        daysToKeep: '{build-days-to-keep}'
67        numToKeep: '{build-num-to-keep}'
68        artifactDaysToKeep: '{build-artifact-days-to-keep}'
69        artifactNumToKeep: '{build-artifact-num-to-keep}'
70
71    parameters:
72        - project-parameter:
73            project: '{project}'
74        - gerrit-parameter:
75            branch: '{branch}'
76        - os-parameter:
77            os: '{os}'
78
79    scm:
80        - gerrit-trigger-scm:
81            credentials-id: 'jenkins-gerrit-credentials'
82            refspec: '$GERRIT_REFSPEC'
83            choosing-strategy: 'gerrit'
84
85    wrappers:
86      - fdio-infra-wrappers:
87          build-timeout: '{build-timeout}'
88
89    triggers:
90        - gerrit-trigger-patch-merged:
91            name: '{project}'
92            branch: '{branch}'
93
94    builders:
95        - shell:
96            !include-raw-escape: include-raw-trex-build.sh
97
98
99