| 1 | - defaults: |
| 2 | name: lttng-scope |
| 3 | description: | |
| 4 | Nightly build of LTTng Scope. |
| 5 | |
| 6 | <p>Job is managed by Jenkins Job Builder.</p> |
| 7 | |
| 8 | project-type: freestyle |
| 9 | |
| 10 | wrappers: |
| 11 | - workspace-cleanup |
| 12 | - timestamps |
| 13 | - ansicolor |
| 14 | |
| 15 | scm: |
| 16 | - git: |
| 17 | url: git://github.com/{github_user}/{github_name}.git |
| 18 | browser: githubweb |
| 19 | browser-url: https://github.com/{github_user}/{github_name} |
| 20 | branches: |
| 21 | - origin/{version} |
| 22 | skip-tag: true |
| 23 | |
| 24 | triggers: |
| 25 | - pollscm: |
| 26 | cron: "@hourly" |
| 27 | |
| 28 | properties: |
| 29 | - build-discarder: |
| 30 | num-to-keep: 7 |
| 31 | - github: |
| 32 | url: https://github.com/{github_user}/{github_name} |
| 33 | |
| 34 | |
| 35 | ## Templates |
| 36 | - job-template: |
| 37 | name: lttng-scope_{version}_build |
| 38 | defaults: lttng-scope |
| 39 | |
| 40 | project-type: matrix |
| 41 | node: 'master' # Applies only to matrix flyweight task |
| 42 | axes: |
| 43 | - axis: |
| 44 | type: slave |
| 45 | name: arch |
| 46 | values: '{obj:arch}' |
| 47 | |
| 48 | wrappers: |
| 49 | - workspace-cleanup |
| 50 | - timestamps |
| 51 | - ansicolor |
| 52 | - xvfb: |
| 53 | installation-name: "default" |
| 54 | auto-display-name: true |
| 55 | parallel-build: false |
| 56 | screen: 1024x768x24 |
| 57 | - timeout: |
| 58 | timeout: 120 |
| 59 | fail: true |
| 60 | type: absolute |
| 61 | |
| 62 | builders: |
| 63 | - shell: |
| 64 | !include-raw-escape: scripts/lttng-scope/launch-wm.sh |
| 65 | - maven-target: |
| 66 | maven-version: "default" |
| 67 | goals: "-version" |
| 68 | private-repository: true |
| 69 | settings: 'org.jenkinsci.plugins.configfiles.maven.MavenSettingsConfig277b7a2d-b7a6-4ae4-a32d-18c02514e9e4' |
| 70 | - maven-target: |
| 71 | maven-version: "default" |
| 72 | goals: clean install -Dmaven.test.skip=false |
| 73 | private-repository: true |
| 74 | settings: 'org.jenkinsci.plugins.configfiles.maven.MavenSettingsConfig277b7a2d-b7a6-4ae4-a32d-18c02514e9e4' |
| 75 | properties: |
| 76 | - maven.test.failure.ignore=true |
| 77 | |
| 78 | publishers: |
| 79 | - archive: |
| 80 | artifacts: '**/target/*.jar' |
| 81 | allow-empty: false |
| 82 | only-if-success: true |
| 83 | - junit: |
| 84 | results: '**/target/surefire-reports/*.xml' |
| 85 | - warnings: |
| 86 | console-log-parsers: |
| 87 | - 'Maven' |
| 88 | total-thresholds: |
| 89 | unstable: |
| 90 | total-all: 0 |
| 91 | total-high: 0 |
| 92 | total-normal: 0 |
| 93 | total-low: 0 |
| 94 | - workspace-cleanup |
| 95 | - email-ext: |
| 96 | recipients: alex@voxpopuli.im |
| 97 | matrix-trigger: only-parent |
| 98 | # - ircbot: |
| 99 | # strategy: new-failure-and-fixed |
| 100 | # matrix-notifier: only-parent |
| 101 | # channels: |
| 102 | # - name: '#lttng' |
| 103 | |
| 104 | |
| 105 | - job-template: |
| 106 | name: lttng-scope_{version}_winbuild |
| 107 | defaults: lttng-scope |
| 108 | |
| 109 | project-type: matrix |
| 110 | node: 'master' # Applies only to matrix flyweight task |
| 111 | axes: |
| 112 | - axis: |
| 113 | type: slave |
| 114 | name: arch |
| 115 | values: '{obj:arch}' |
| 116 | |
| 117 | scm: |
| 118 | - git: |
| 119 | url: git://github.com/{github_user}/{github_name}.git |
| 120 | browser: githubweb |
| 121 | browser-url: https://github.com/{github_user}/{github_name} |
| 122 | branches: |
| 123 | - origin/{version} |
| 124 | skip-tag: true |
| 125 | git-tool: 'jgit' # Use jgit on windows to work around path too long |
| 126 | |
| 127 | wrappers: |
| 128 | - workspace-cleanup |
| 129 | - timestamps |
| 130 | - ansicolor |
| 131 | - timeout: |
| 132 | timeout: 120 |
| 133 | fail: true |
| 134 | type: absolute |
| 135 | |
| 136 | builders: |
| 137 | - maven-target: |
| 138 | maven-version: "default" |
| 139 | goals: clean install -Dmaven.test.skip=false |
| 140 | private-repository: true |
| 141 | settings: 'org.jenkinsci.plugins.configfiles.maven.MavenSettingsConfig277b7a2d-b7a6-4ae4-a32d-18c02514e9e4' |
| 142 | properties: |
| 143 | - maven.test.failure.ignore=true |
| 144 | |
| 145 | publishers: |
| 146 | - archive: |
| 147 | artifacts: '**/target/*.jar' |
| 148 | allow-empty: false |
| 149 | only-if-success: true |
| 150 | - junit: |
| 151 | results: '**/target/surefire-reports/*.xml' |
| 152 | - warnings: |
| 153 | console-log-parsers: |
| 154 | - 'Maven' |
| 155 | total-thresholds: |
| 156 | unstable: |
| 157 | total-all: 0 |
| 158 | total-high: 0 |
| 159 | total-normal: 0 |
| 160 | total-low: 0 |
| 161 | - workspace-cleanup |
| 162 | - email-ext: |
| 163 | recipients: alex@voxpopuli.im |
| 164 | matrix-trigger: only-parent |
| 165 | # - ircbot: |
| 166 | # strategy: new-failure-and-fixed |
| 167 | # matrix-notifier: only-parent |
| 168 | # channels: |
| 169 | # - name: '#lttng' |
| 170 | |
| 171 | |
| 172 | - job-template: |
| 173 | name: lttng-scope_{version}_macosxbuild |
| 174 | defaults: lttng-scope |
| 175 | |
| 176 | project-type: matrix |
| 177 | node: 'master' # Applies only to matrix flyweight task |
| 178 | axes: |
| 179 | - axis: |
| 180 | type: slave |
| 181 | name: arch |
| 182 | values: '{obj:arch}' |
| 183 | |
| 184 | wrappers: |
| 185 | - workspace-cleanup |
| 186 | - timestamps |
| 187 | - ansicolor |
| 188 | - timeout: |
| 189 | timeout: 120 |
| 190 | fail: true |
| 191 | type: absolute |
| 192 | |
| 193 | builders: |
| 194 | - maven-target: |
| 195 | maven-version: "default" |
| 196 | goals: "-version" |
| 197 | private-repository: true |
| 198 | settings: 'org.jenkinsci.plugins.configfiles.maven.MavenSettingsConfig277b7a2d-b7a6-4ae4-a32d-18c02514e9e4' |
| 199 | - maven-target: |
| 200 | maven-version: "default" |
| 201 | goals: clean install -Dmaven.test.skip=false |
| 202 | private-repository: true |
| 203 | settings: 'org.jenkinsci.plugins.configfiles.maven.MavenSettingsConfig277b7a2d-b7a6-4ae4-a32d-18c02514e9e4' |
| 204 | properties: |
| 205 | - maven.test.failure.ignore=true |
| 206 | |
| 207 | publishers: |
| 208 | - archive: |
| 209 | artifacts: '**/target/*.jar' |
| 210 | allow-empty: false |
| 211 | only-if-success: true |
| 212 | - junit: |
| 213 | results: '**/target/surefire-reports/*.xml' |
| 214 | - warnings: |
| 215 | console-log-parsers: |
| 216 | - 'Maven' |
| 217 | total-thresholds: |
| 218 | unstable: |
| 219 | total-all: 0 |
| 220 | total-high: 0 |
| 221 | total-normal: 0 |
| 222 | total-low: 0 |
| 223 | - workspace-cleanup |
| 224 | - email-ext: |
| 225 | recipients: alex@voxpopuli.im |
| 226 | matrix-trigger: only-parent |
| 227 | # - ircbot: |
| 228 | # strategy: new-failure-and-fixed |
| 229 | # matrix-notifier: only-parent |
| 230 | # channels: |
| 231 | # - name: '#lttng' |
| 232 | |
| 233 | - job-template: |
| 234 | name: lttng-scope_{version}_coverity |
| 235 | defaults: lttng-scope |
| 236 | node: 'x86-64' |
| 237 | |
| 238 | triggers: |
| 239 | - pollscm: |
| 240 | cron: "@daily" |
| 241 | |
| 242 | wrappers: |
| 243 | - workspace-cleanup |
| 244 | - timestamps |
| 245 | - ansicolor: |
| 246 | colormap: xterm |
| 247 | - credentials-binding: |
| 248 | - username-password-separated: |
| 249 | credential-id: lttng-scope_coverity_token |
| 250 | username: COVERITY_SCAN_PROJECT_NAME |
| 251 | password: COVERITY_SCAN_TOKEN |
| 252 | |
| 253 | scm: |
| 254 | - git: |
| 255 | url: git://github.com/{github_user}/{github_name}.git |
| 256 | browser: githubweb |
| 257 | browser-url: https://github.com/{github_user}/{github_name} |
| 258 | branches: |
| 259 | - origin/{version} |
| 260 | skip-tag: true |
| 261 | basedir: src/lttng-scope |
| 262 | |
| 263 | builders: |
| 264 | - maven-target: |
| 265 | maven-version: "default" |
| 266 | goals: "-version" |
| 267 | private-repository: true |
| 268 | settings: 'org.jenkinsci.plugins.configfiles.maven.MavenSettingsConfig277b7a2d-b7a6-4ae4-a32d-18c02514e9e4' |
| 269 | - shell: |
| 270 | !include-raw-escape: scripts/common/coverity.sh |
| 271 | |
| 272 | publishers: |
| 273 | - workspace-cleanup |
| 274 | - archive: |
| 275 | artifacts: 'analysis-results.tgz,cov-int/**' |
| 276 | allow-empty: false |
| 277 | |
| 278 | |
| 279 | ## Project |
| 280 | - project: |
| 281 | name: lttng-scope |
| 282 | github_user: lttng |
| 283 | github_name: lttng-scope |
| 284 | version: |
| 285 | - master |
| 286 | jobs: |
| 287 | - 'lttng-scope_{version}_build': |
| 288 | arch: !!python/tuple [x86-32, x86-64] |
| 289 | - 'lttng-scope_{version}_winbuild': |
| 290 | arch: !!python/tuple [win64] |
| 291 | - 'lttng-scope_{version}_macosxbuild': |
| 292 | arch: !!python/tuple [macosx] |
| 293 | - 'lttng-scope_{version}_coverity': |
| 294 | version: master |
| 295 | |