Commit | Line | Data |
---|---|---|
b50820f1 MJ |
1 | --- |
2 | ## Defaults ## | |
9b7bab3d MJ |
3 | - defaults: |
4 | name: barectf | |
5 | description: | | |
6 | <em><strong><a href="https://github.com/efficios/barectf">barectf</a></strong></em> | |
7 | is a command-line utility which generates C99 code that is able to write | |
8 | native Common Trace Format (CTF) binary streams. | |
9 | ||
10 | <p>Job is managed by Jenkins Job Builder.</p> | |
11 | ||
12 | project-type: freestyle | |
13 | ||
14 | wrappers: | |
c0f6d9ca | 15 | - ansicolor: &barectf_wrapper_ansicolor_defaults |
9b7bab3d | 16 | colormap: xterm |
c0f6d9ca MJ |
17 | - timeout: &barectf_wrapper_timeout_defaults |
18 | timeout: 20 | |
19 | fail: true | |
20 | type: no-activity | |
21 | - timestamps | |
22 | - workspace-cleanup | |
9b7bab3d MJ |
23 | |
24 | scm: | |
25 | - git: | |
4d27af8f | 26 | url: https://github.com/{github_user}/{github_name}.git |
9b7bab3d MJ |
27 | browser: githubweb |
28 | browser-url: https://github.com/{github_user}/{github_name} | |
29 | branches: | |
30 | - origin/{version} | |
31 | basedir: src/barectf | |
32 | skip-tag: true | |
33 | ||
34 | triggers: | |
f78f03ce | 35 | - github |
9b7bab3d MJ |
36 | - pollscm: |
37 | cron: "@hourly" | |
38 | ||
39 | properties: | |
40 | - build-discarder: | |
3b228cdd MJ |
41 | num-to-keep: 10 |
42 | artifact-num-to-keep: 2 | |
9b7bab3d MJ |
43 | - github: |
44 | url: https://github.com/{github_user}/{github_name} | |
45 | ||
c0f6d9ca MJ |
46 | publishers: |
47 | - workspace-cleanup: &barectf_publisher_workspace_cleanup_defaults | |
48 | clean-if: | |
49 | - failure: false | |
50 | ||
9b7bab3d | 51 | |
b50820f1 | 52 | ## Templates ## |
9b7bab3d | 53 | - job-template: |
c0f6d9ca | 54 | name: barectf_{version}_{buildtype} |
9b7bab3d MJ |
55 | defaults: barectf |
56 | ||
57 | project-type: matrix | |
58 | node: 'master' # Applies only to matrix flyweight task | |
59 | axes: | |
60 | - axis: | |
61 | type: slave | |
c0f6d9ca MJ |
62 | name: platform |
63 | values: '{obj:platforms}' | |
9b7bab3d MJ |
64 | |
65 | builders: | |
66 | - shell: | |
67 | !include-raw-escape: scripts/barectf/build.sh | |
68 | ||
69 | publishers: | |
c0f6d9ca | 70 | - workspace-cleanup: *barectf_publisher_workspace_cleanup_defaults |
49b739d5 JR |
71 | - email-ext: |
72 | recipients: '{obj:email_to}' | |
73 | reply-to: ci-notification@lists.lttng.org | |
74 | always: false | |
75 | unstable: false | |
76 | first-failure: true | |
77 | first-unstable: true | |
78 | not-built: false | |
79 | aborted: false | |
80 | regression: false | |
81 | failure: false | |
82 | second-failure: false | |
83 | improvement: false | |
84 | still-failing: false | |
85 | success: false | |
86 | fixed: false | |
87 | fixed-unhealthy: true | |
88 | still-unstable: false | |
89 | pre-build: false | |
90 | matrix-trigger: only-parent | |
91 | send-to: | |
92 | - recipients | |
9b7bab3d | 93 | |
2f58594e MJ |
94 | - job-template: |
95 | name: dev_gerrit_barectf_{buildtype} | |
96 | defaults: barectf | |
97 | concurrent: true | |
98 | ||
99 | project-type: matrix | |
100 | node: 'master' # Applies only to matrix flyweight task | |
101 | axes: | |
102 | - axis: | |
103 | type: slave | |
c0f6d9ca MJ |
104 | name: platform |
105 | values: '{obj:platforms}' | |
2f58594e MJ |
106 | |
107 | scm: | |
108 | - git: | |
109 | url: https://review.lttng.org/barectf | |
110 | refspec: 'refs/changes/*:refs/changes/*' | |
111 | branches: | |
112 | - '$GERRIT_REFSPEC' | |
113 | basedir: src/barectf | |
114 | skip-tag: true | |
115 | ||
116 | triggers: | |
117 | - gerrit: | |
118 | trigger-on: | |
119 | - comment-added-event: | |
120 | approval-category: 'CI-Build' | |
121 | approval-value: 1 | |
122 | projects: | |
123 | - project-compare-type: 'PLAIN' | |
124 | project-pattern: 'barectf' | |
125 | branches: | |
126 | - branch-compare-type: 'ANT' | |
127 | branch-pattern: '**' | |
2f58594e | 128 | |
7d482a1d MJ |
129 | properties: |
130 | - build-discarder: | |
131 | days-to-keep: 1 | |
132 | - throttle: | |
133 | option: 'category' | |
134 | categories: | |
135 | - 'gerrit-{buildtype}' | |
c0f6d9ca | 136 | |
2f58594e MJ |
137 | builders: |
138 | - shell: | |
139 | !include-raw-escape: scripts/barectf/build.sh | |
140 | ||
9b7bab3d | 141 | |
b50820f1 MJ |
142 | ## Views ## |
143 | - view-template: | |
144 | name: 'Barectf' | |
145 | view-type: list | |
146 | regex: 'barectf[-_].*' | |
9b7bab3d | 147 | |
9b7bab3d | 148 | |
b50820f1 | 149 | ## Projects ## |
9b7bab3d MJ |
150 | - project: |
151 | name: barectf | |
152 | github_user: efficios | |
153 | github_name: barectf | |
49b739d5 | 154 | email_to: 'ci-notification@lists.lttng.org, cc:pproulx@efficios.com' |
9b7bab3d MJ |
155 | version: |
156 | - master | |
7710f477 | 157 | - stable-3.0 |
9b7bab3d | 158 | jobs: |
c0f6d9ca MJ |
159 | - 'barectf_{version}_{buildtype}': |
160 | buildtype: linuxbuild | |
161 | platforms: !!python/tuple [jammy-amd64] | |
9b7bab3d | 162 | |
2f58594e MJ |
163 | - project: |
164 | name: gerrit-barectf | |
165 | github_user: efficios | |
b50820f1 | 166 | github_name: barectf |
2f58594e MJ |
167 | jobs: |
168 | - 'dev_gerrit_barectf_{buildtype}': | |
c0f6d9ca MJ |
169 | buildtype: linuxbuild |
170 | platforms: !!python/tuple [jammy-amd64] | |
b50820f1 MJ |
171 | |
172 | - project: | |
173 | name: barectf-views | |
174 | views: | |
175 | - Barectf |