jjb: lttng-ust: Update discard strategy of the gerrit job
[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
125 builders:
126 - shell:
127 !include-raw-escape: scripts/barectf/build.sh
128
9b7bab3d
MJ
129- job-template:
130 name: barectf_{version}_pylint
131 defaults: barectf
16844a6d 132 node: 'amd64'
9b7bab3d
MJ
133
134 triggers:
135 - pollscm:
136 cron: "@daily"
137
138 builders:
139 - shell:
140 !include-raw-escape: scripts/barectf/pylint.sh
141
142 publishers:
143 - archive:
144 artifacts: 'pep8.out,pylint.out'
145 - violations:
146 pep8:
147 pattern: pep8.out
148 min: 10
149 max: 999
150 unstable: 999
151 pylint:
152 pattern: pylint.out
153 min: 10
154 max: 999
155 unstable: 999
49b739d5
JR
156 - email-ext:
157 recipients: '{obj:email_to}'
158 reply-to: ci-notification@lists.lttng.org
159 always: false
160 unstable: false
161 first-failure: true
162 first-unstable: true
163 not-built: false
164 aborted: false
165 regression: false
166 failure: false
167 second-failure: false
168 improvement: false
169 still-failing: false
170 success: false
171 fixed: false
172 fixed-unhealthy: true
173 still-unstable: false
174 pre-build: false
175 matrix-trigger: only-parent
176 send-to:
177 - recipients
9b7bab3d
MJ
178
179## Project
180- project:
181 name: barectf
182 github_user: efficios
183 github_name: barectf
49b739d5 184 email_to: 'ci-notification@lists.lttng.org, cc:pproulx@efficios.com'
9b7bab3d
MJ
185 version:
186 - master
187 jobs:
188 - 'barectf_{version}_build':
16844a6d 189 arch: !!python/tuple [i386, amd64]
9b7bab3d
MJ
190 - 'barectf_{version}_pylint'
191
2f58594e
MJ
192- project:
193 name: gerrit-barectf
194 github_user: efficios
195 github_name: babeltrace
196 jobs:
197 - 'dev_gerrit_barectf_{buildtype}':
198 buildtype: build
199 arch: !!python/tuple [i386, amd64]
This page took 0.033412 seconds and 4 git commands to generate.