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