| 1 | - defaults: |
| 2 | name: ctf-java-mvn |
| 3 | description: | |
| 4 | Nightly build of CTF Java. |
| 5 | |
| 6 | <p>Job is managed by Jenkins Job Builder.</p> |
| 7 | |
| 8 | project-type: maven |
| 9 | |
| 10 | maven: |
| 11 | goals: 'clean install' |
| 12 | private-repository: 'local-to-workspace' |
| 13 | automatic-fingerprinting: false |
| 14 | per-module-email: false |
| 15 | settings: 'org.jenkinsci.plugins.configfiles.maven.MavenSettingsConfig277b7a2d-b7a6-4ae4-a32d-18c02514e9e4' |
| 16 | settings-type: cfp |
| 17 | |
| 18 | wrappers: |
| 19 | - workspace-cleanup |
| 20 | - timestamps |
| 21 | - ansicolor |
| 22 | |
| 23 | scm: |
| 24 | - git: |
| 25 | url: https://gitlab.com/{gitlab_user}/{gitlab_project}.git |
| 26 | browser: gitlab |
| 27 | browser-url: https://gitlab.com/{gitlab_user}/{gitlab_project} |
| 28 | branches: |
| 29 | - origin/{version} |
| 30 | skip-tag: true |
| 31 | |
| 32 | triggers: |
| 33 | - pollscm: |
| 34 | cron: "@hourly" |
| 35 | - timed: "@daily" |
| 36 | |
| 37 | properties: |
| 38 | - build-discarder: |
| 39 | num-to-keep: 2 |
| 40 | |
| 41 | - defaults: |
| 42 | name: ctf-java |
| 43 | description: | |
| 44 | Nightly build of CTF Java. |
| 45 | |
| 46 | <p>Job is managed by Jenkins Job Builder.</p> |
| 47 | |
| 48 | project-type: freestyle |
| 49 | |
| 50 | wrappers: |
| 51 | - workspace-cleanup |
| 52 | - timestamps |
| 53 | - ansicolor |
| 54 | |
| 55 | scm: |
| 56 | - git: |
| 57 | url: https://gitlab.com/{gitlab_user}/{gitlab_project}.git |
| 58 | browser: gitlab |
| 59 | browser-url: https://gitlab.com/{gitlab_user}/{gitlab_project} |
| 60 | branches: |
| 61 | - origin/{version} |
| 62 | skip-tag: true |
| 63 | |
| 64 | triggers: |
| 65 | - pollscm: |
| 66 | cron: "@hourly" |
| 67 | |
| 68 | properties: |
| 69 | - build-discarder: |
| 70 | num-to-keep: 2 |
| 71 | |
| 72 | |
| 73 | ## Templates |
| 74 | - job-template: |
| 75 | name: ctf-java_{version}_build |
| 76 | defaults: ctf-java-mvn |
| 77 | |
| 78 | publishers: |
| 79 | - warnings: |
| 80 | console-log-parsers: |
| 81 | - 'Maven' |
| 82 | total-thresholds: |
| 83 | unstable: |
| 84 | total-all: 0 |
| 85 | total-high: 0 |
| 86 | total-normal: 0 |
| 87 | total-low: 0 |
| 88 | messages-to-ignore: |- |
| 89 | No sources found skipping Kotlin compile |
| 90 | Ignoring project type pom - supportedProjectTypes = \[jar, bundle\] |
| 91 | ^Tests run:.* |
| 92 | .*Source root doesn't exist.* |
| 93 | Could not transfer metadata.*codehaus-snapshots.* |
| 94 | - workspace-cleanup |
| 95 | - email-ext: |
| 96 | recipients: '{obj:email_for_all_failure}' |
| 97 | always: false |
| 98 | unstable: true |
| 99 | first-failure: false |
| 100 | first-unstable: false |
| 101 | not-built: false |
| 102 | aborted: false |
| 103 | regression: false |
| 104 | failure: true |
| 105 | second-failure: false |
| 106 | improvement: false |
| 107 | still-failing: false |
| 108 | success: false |
| 109 | fixed: false |
| 110 | fixed-unhealthy: true |
| 111 | still-unstable: false |
| 112 | pre-build: false |
| 113 | matrix-trigger: only-parent |
| 114 | send-to: |
| 115 | - recipients |
| 116 | - email-ext: |
| 117 | recipients: '{obj:email_to}' |
| 118 | reply-to: ci-notification@lists.lttng.org |
| 119 | always: false |
| 120 | unstable: false |
| 121 | first-failure: true |
| 122 | first-unstable: true |
| 123 | not-built: false |
| 124 | aborted: false |
| 125 | regression: false |
| 126 | failure: false |
| 127 | second-failure: false |
| 128 | improvement: false |
| 129 | still-failing: false |
| 130 | success: false |
| 131 | fixed: false |
| 132 | fixed-unhealthy: true |
| 133 | still-unstable: false |
| 134 | pre-build: false |
| 135 | matrix-trigger: only-parent |
| 136 | send-to: |
| 137 | - recipients |
| 138 | |
| 139 | |
| 140 | - job-template: |
| 141 | name: ctf-java_{version}_coverity |
| 142 | defaults: ctf-java |
| 143 | node: 'x86-64' |
| 144 | |
| 145 | triggers: |
| 146 | - pollscm: |
| 147 | cron: "@daily" |
| 148 | |
| 149 | wrappers: |
| 150 | - workspace-cleanup |
| 151 | - timestamps |
| 152 | - ansicolor: |
| 153 | colormap: xterm |
| 154 | - credentials-binding: |
| 155 | - username-password-separated: |
| 156 | credential-id: ctf-java_coverity_token |
| 157 | username: COVERITY_SCAN_PROJECT_NAME |
| 158 | password: COVERITY_SCAN_TOKEN |
| 159 | |
| 160 | scm: |
| 161 | - git: |
| 162 | url: https://gitlab.com/{gitlab_user}/{gitlab_project}.git |
| 163 | browser: gitlab |
| 164 | browser-url: https://gitlab.com/{gitlab_user}/{gitlab_project} |
| 165 | branches: |
| 166 | - origin/{version} |
| 167 | skip-tag: true |
| 168 | basedir: src/ctf-java |
| 169 | |
| 170 | builders: |
| 171 | - maven-target: |
| 172 | maven-version: "default" |
| 173 | goals: "-version" |
| 174 | private-repository: true |
| 175 | settings: 'org.jenkinsci.plugins.configfiles.maven.MavenSettingsConfig277b7a2d-b7a6-4ae4-a32d-18c02514e9e4' |
| 176 | - shell: |
| 177 | !include-raw-escape: scripts/common/coverity.sh |
| 178 | |
| 179 | publishers: |
| 180 | - workspace-cleanup |
| 181 | - archive: |
| 182 | artifacts: 'analysis-results.tgz,cov-int/**' |
| 183 | allow-empty: false |
| 184 | |
| 185 | |
| 186 | ## Project |
| 187 | - project: |
| 188 | name: ctf-java |
| 189 | gitlab_user: lttng |
| 190 | gitlab_project: lttng-scope/ctf-java |
| 191 | email_to: 'ci-notification@lists.lttng.org, cc:alexmonthy@efficios.com' |
| 192 | email_for_all_failure: 'alexmonthy@efficios.com' |
| 193 | version: |
| 194 | - master |
| 195 | jobs: |
| 196 | - 'ctf-java_{version}_build' |
| 197 | - 'ctf-java_{version}_coverity': |
| 198 | version: master |