jjb: lttng-tools: Add rootbuild gerrit jobs
[lttng-ci.git] / jobs / barectf.yaml
CommitLineData
9b7bab3d
MJ
1- defaults:
2 name: barectf
3 description: |
4 <em><strong><a href="https://github.com/efficios/barectf">barectf</a></strong></em>
5 is a command-line utility which generates C99 code that is able to write
6 native Common Trace Format (CTF) binary streams.
7
8 <p>Job is managed by Jenkins Job Builder.</p>
9
10 project-type: freestyle
11
12 wrappers:
13 - workspace-cleanup
14 - timestamps
15 - ansicolor:
16 colormap: xterm
17 # - credentials-binding:
18 # - username-password-separated:
19 # credential-id: barectf_codecov_token
20 # username: CODECOV_PROJECT_NAME
21 # password: CODECOV_TOKEN
22
23 scm:
24 - git:
25 url: git://github.com/{github_user}/{github_name}.git
26 browser: githubweb
27 browser-url: https://github.com/{github_user}/{github_name}
28 branches:
29 - origin/{version}
30 basedir: src/barectf
31 skip-tag: true
32
33 triggers:
f78f03ce 34 - github
9b7bab3d
MJ
35 - pollscm:
36 cron: "@hourly"
37
38 properties:
39 - build-discarder:
40 num-to-keep: 2
41 - github:
42 url: https://github.com/{github_user}/{github_name}
43
44
45## Templates
46- job-template:
47 name: barectf_{version}_build
48 defaults: barectf
49
50 project-type: matrix
51 node: 'master' # Applies only to matrix flyweight task
52 axes:
53 - axis:
54 type: slave
55 name: arch
56 values: '{obj:arch}'
57
58 builders:
59 - shell:
60 !include-raw-escape: scripts/barectf/build.sh
61
62 publishers:
63# - archive:
64# artifacts: 'build/**'
65# allow-empty: false
49b739d5
JR
66 - email-ext:
67 recipients: '{obj:email_to}'
68 reply-to: ci-notification@lists.lttng.org
69 always: false
70 unstable: false
71 first-failure: true
72 first-unstable: true
73 not-built: false
74 aborted: false
75 regression: false
76 failure: false
77 second-failure: false
78 improvement: false
79 still-failing: false
80 success: false
81 fixed: false
82 fixed-unhealthy: true
83 still-unstable: false
84 pre-build: false
85 matrix-trigger: only-parent
86 send-to:
87 - recipients
9b7bab3d 88
2f58594e
MJ
89- job-template:
90 name: dev_gerrit_barectf_{buildtype}
91 defaults: barectf
92 concurrent: true
93
94 project-type: matrix
95 node: 'master' # Applies only to matrix flyweight task
96 axes:
97 - axis:
98 type: slave
99 name: arch
100 values: '{obj:arch}'
101
102 scm:
103 - git:
104 url: https://review.lttng.org/barectf
105 refspec: 'refs/changes/*:refs/changes/*'
106 branches:
107 - '$GERRIT_REFSPEC'
108 basedir: src/barectf
109 skip-tag: true
110
111 triggers:
112 - gerrit:
113 trigger-on:
114 - comment-added-event:
115 approval-category: 'CI-Build'
116 approval-value: 1
117 projects:
118 - project-compare-type: 'PLAIN'
119 project-pattern: 'barectf'
120 branches:
121 - branch-compare-type: 'ANT'
122 branch-pattern: '**'
123 trigger-for-unreviewed-patches: true
124
7d482a1d
MJ
125 properties:
126 - build-discarder:
127 days-to-keep: 1
128 - throttle:
129 option: 'category'
130 categories:
131 - 'gerrit-{buildtype}'
2f58594e
MJ
132 builders:
133 - shell:
134 !include-raw-escape: scripts/barectf/build.sh
135
9b7bab3d
MJ
136- job-template:
137 name: barectf_{version}_pylint
138 defaults: barectf
16844a6d 139 node: 'amd64'
9b7bab3d
MJ
140
141 triggers:
142 - pollscm:
143 cron: "@daily"
144
145 builders:
146 - shell:
147 !include-raw-escape: scripts/barectf/pylint.sh
148
149 publishers:
150 - archive:
151 artifacts: 'pep8.out,pylint.out'
152 - violations:
153 pep8:
154 pattern: pep8.out
155 min: 10
156 max: 999
157 unstable: 999
158 pylint:
159 pattern: pylint.out
160 min: 10
161 max: 999
162 unstable: 999
49b739d5
JR
163 - email-ext:
164 recipients: '{obj:email_to}'
165 reply-to: ci-notification@lists.lttng.org
166 always: false
167 unstable: false
168 first-failure: true
169 first-unstable: true
170 not-built: false
171 aborted: false
172 regression: false
173 failure: false
174 second-failure: false
175 improvement: false
176 still-failing: false
177 success: false
178 fixed: false
179 fixed-unhealthy: true
180 still-unstable: false
181 pre-build: false
182 matrix-trigger: only-parent
183 send-to:
184 - recipients
9b7bab3d
MJ
185
186## Project
187- project:
188 name: barectf
189 github_user: efficios
190 github_name: barectf
49b739d5 191 email_to: 'ci-notification@lists.lttng.org, cc:pproulx@efficios.com'
9b7bab3d
MJ
192 version:
193 - master
194 jobs:
195 - 'barectf_{version}_build':
16844a6d 196 arch: !!python/tuple [i386, amd64]
9b7bab3d
MJ
197 - 'barectf_{version}_pylint'
198
2f58594e
MJ
199- project:
200 name: gerrit-barectf
201 github_user: efficios
202 github_name: babeltrace
203 jobs:
204 - 'dev_gerrit_barectf_{buildtype}':
205 buildtype: build
206 arch: !!python/tuple [i386, amd64]
This page took 0.032488 seconds and 4 git commands to generate.