Rename jenkins ssh-agent-credential
[releng/builder.git] / jjb / opflex / opflex-custom.yaml
1 - project:
2     name: opflex
3     jobs:
4         - 'opflex-verify-{stream}'
5         - 'opflex-merge-{stream}'
6 #        - 'opflex-daily-{stream}'
7 #        - 'opflex-distribution-{stream}'
8
9     # stream:    release stream (eg. stable-lithium or beryllium)
10     # branch:    git branch (eg. stable/lithium or master)
11     stream:
12         - boron:
13             branch: 'master'
14             jdk: openjdk7
15             jdks:
16                 - openjdk7
17         - beryllium:
18             branch: 'stable/beryllium'
19             jdk: openjdk7
20             jdks:
21                 - openjdk7
22
23     project: 'opflex'
24
25 - builder:
26     name: opflex-build
27     builders:
28       - maven-target:
29           maven-version: '{mvn33}'
30           pom: genie/pom.xml
31           goals: compile
32       - copyartifact:
33           project: opflex-libuv_tgz-{stream}
34           flatten: true
35       - copyartifact:
36           project: opflex-rapidjson_tgz-{stream}
37           flatten: true
38       - copyartifact:
39           project: opflex-openvswitch_tgz-{stream}
40           flatten: true
41       - shell:
42           !include-raw-escape:
43             - include-raw-opflex-build.sh
44
45 - job-template:
46     name: 'opflex-verify-{stream}'
47
48     project-type: matrix
49     node: matrix_master
50     concurrent: true
51
52     axes:
53         - axis:
54             type: slave
55             name: nodes
56             values:
57                 - dynamic_verify
58         - axis:
59             type: jdk
60             values: '{obj:jdks}'
61
62     logrotate:
63         daysToKeep: '{build-days-to-keep}'
64         numToKeep: '{build-num-to-keep}'
65         artifactDaysToKeep: '{build-artifact-days-to-keep}'
66         artifactNumToKeep: '{build-artifact-num-to-keep}'
67
68     parameters:
69         - project-parameter:
70             project: '{project}'
71         - gerrit-parameters:
72             project: '{project}'
73             branch: '{branch}'
74             refspec: 'refs/heads/{branch}'
75
76     scm:
77         - gerrit-trigger-scm:
78             refspec: '$GERRIT_REFSPEC'
79             choosing-strategy: 'gerrit'
80
81     wrappers:
82         - opendaylight-infra-wrappers:
83             build-timeout: '{build-timeout}'
84
85     triggers:
86         - gerrit-trigger-patch-submitted:
87             name: 'opflex'
88             branch: '{branch}'
89
90     builders:
91         - opflex-build:
92             mvn33: '{mvn33}'
93             stream: '{stream}'
94
95     publishers:
96         - email-notification:
97             email-prefix: '[opflex]'
98
99 - job-template:
100     name: 'opflex-merge-{stream}'
101
102     node: dynamic_merge
103     jdk: '{jdk}'
104
105     logrotate:
106         daysToKeep: '{build-days-to-keep}'
107         numToKeep: '{build-num-to-keep}'
108         artifactDaysToKeep: '{build-artifact-days-to-keep}'
109         artifactNumToKeep: '{build-artifact-num-to-keep}'
110
111     parameters:
112         - project-parameter:
113             project: '{project}'
114         - gerrit-parameters:
115             project: '{project}'
116             branch: '{branch}'
117             refspec: 'refs/heads/{branch}'
118
119     scm:
120         - gerrit-trigger-scm:
121             refspec: ''
122             choosing-strategy: 'default'
123
124     wrappers:
125         - opendaylight-infra-wrappers:
126             build-timeout: '{build-timeout}'
127
128     triggers:
129         - gerrit-trigger-patch-merged:
130             name: 'opflex'
131             branch: '{branch}'
132
133     builders:
134         - opflex-build:
135             mvn33: '{mvn33}'
136             stream: '{stream}'
137
138     publishers:
139         - email-notification:
140             email-prefix: '[opflex]'
141         - archive:
142             artifacts: '**/*.tar.gz'