6 - lf_cmake_stage: &lf_cmake_stage
10 # Default parameters #
11 ######################
15 build-dir: '$WORKSPACE/target'
20 git-url: '$GIT_URL/$PROJECT'
21 github-url: 'https://github.com'
22 install-prefix: '$BUILD_DIR/output'
24 mvn-global-settings: global-settings
27 submodule-recursive: true
35 project-type: freestyle
37 disabled: '{disable-job}'
40 - lf-infra-properties:
41 build-days-to-keep: '{build-days-to-keep}'
44 - lf-infra-parameters:
48 lftools-version: '{lftools-version}'
49 - lf-cmake-parameters:
50 build-dir: '{build-dir}'
51 cmake-opts: '{cmake-opts}'
52 install-prefix: '{install-prefix}'
53 make-opts: '{make-opts}'
56 default: '{nexus-group-id}'
57 description: 'Project Group ID in Nexus to upload to.'
59 name: STAGING_PROFILE_ID
60 default: '{staging-profile-id}'
61 description: 'Nexus staging profile ID.'
68 Project version to stage release as. There are 2 methods for
71 1) Defined explicitly here.
72 2) Leave this value blank and set /tmp/artifact_version
74 Use method 2 in conjunction with 'pre-build' configuration to
75 generate the artifact_version automatically from files in the
76 project's repository. For example with pre-build script:
79 MAJOR_VERSION="$(grep 'set(OCIO_VERSION_MAJOR' CMakeLists.txt \
80 | awk '{{print $NF}}' | awk -F')' '{{print $1}}')"
81 MINOR_VERSION="$(grep 'set(OCIO_VERSION_MINOR' CMakeLists.txt \
82 | awk '{{print $NF}}' | awk -F')' '{{print $1}}')"
83 PATCH_VERSION="$(grep 'set(OCIO_VERSION_PATCH' CMakeLists.txt \
84 | awk '{{print $NF}}' | awk -F')' '{{print $1}}')"
85 echo "${{MAJOR_VERSION}}.${{MINOR_VERSION}}.${{PATCH_VERSION}}" > /tmp/artifact_version
89 build-timeout: '{build-timeout}'
90 jenkins-ssh-credential: '{jenkins-ssh-credential}'
93 - shell: !include-raw-escape: ../shell/lftools-install.sh
94 - lf-provide-maven-settings:
95 global-settings-file: '{mvn-global-settings}'
96 settings-file: '{mvn-settings}'
97 - lf-infra-create-netrc:
99 - shell: '{pre-build}'
100 - shell: !include-raw-escape: ../shell/cmake-build.sh
101 - shell: !include-raw-escape: ../shell/cmake-stage.sh
102 - lf-provide-maven-settings-cleanup
108 name: '{project-name}-cmake-stage-{stream}'
109 id: gerrit-cmake-stage
114 - lf-infra-gerrit-scm:
115 branch: '$GERRIT_BRANCH'
116 jenkins-ssh-credential: '{jenkins-ssh-credential}'
118 refspec: '$GERRIT_REFSPEC'
119 submodule-recursive: '{submodule-recursive}'
120 submodule-timeout: '{submodule-timeout}'
121 choosing-strategy: gerrit
124 - timed: '{obj:cron}'
126 server-name: '{gerrit-server-name}'
128 - comment-added-contains-event:
129 comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(stage-release)$'
131 - project-compare-type: 'ANT'
132 project-pattern: '{project}'
134 - branch-compare-type: 'ANT'
135 branch-pattern: '**/{branch}'
138 name: '{project-name}-cmake-stage-{stream}'
139 id: github-cmake-stage
144 - lf-infra-properties:
145 build-days-to-keep: '{build-days-to-keep}'
147 url: '{github-url}/{github-org}/{project}'
150 - lf-infra-github-scm:
151 url: '{git-clone-url}{github-org}/{project}'
152 refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
154 submodule-recursive: '{submodule-recursive}'
155 submodule-timeout: '{submodule-timeout}'
156 choosing-strategy: default
157 jenkins-ssh-credential: '{jenkins-ssh-credential}'
160 - timed: '{obj:cron}'
161 - github-pull-request:
162 trigger-phrase: '^(stage-release)$'
163 only-trigger-phrase: true
164 status-context: 'CMake Stage'
167 white-list-target-branches:
175 - lf_cmake_verify: &lf_cmake_verify
176 name: lf-cmake-verify
178 ######################
179 # Default parameters #
180 ######################
183 build-days-to-keep: 7
184 build-dir: '$WORKSPACE/target'
188 git-url: '$GIT_URL/$PROJECT'
189 github-url: 'https://github.com'
190 install-prefix: '$BUILD_DIR/output'
194 submodule-recursive: true
195 submodule-timeout: 10
197 gerrit_verify_triggers:
198 - patchset-created-event:
200 exclude-trivial-rebase: false
201 exclude-no-code-change: false
202 - draft-published-event
203 - comment-added-contains-event:
204 comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
206 gerrit_trigger_file_paths:
207 - compare-type: REG_EXP
210 # github_included_regions MUST match gerrit_trigger_file_paths
211 github_included_regions:
214 #####################
215 # Job Configuration #
216 #####################
218 project-type: freestyle
220 disabled: '{disable-job}'
223 - lf-infra-properties:
224 build-days-to-keep: '{build-days-to-keep}'
227 - lf-infra-parameters:
231 lftools-version: '{lftools-version}'
232 - lf-cmake-parameters:
233 build-dir: '{build-dir}'
234 cmake-opts: '{cmake-opts}'
235 install-prefix: '{install-prefix}'
236 make-opts: '{make-opts}'
240 build-timeout: '{build-timeout}'
241 jenkins-ssh-credential: '{jenkins-ssh-credential}'
244 - shell: '{pre-build}'
245 - shell: !include-raw-escape: ../shell/cmake-build.sh
251 name: '{project-name}-cmake-verify-{stream}'
252 id: gerrit-cmake-verify
257 - lf-infra-gerrit-scm:
258 branch: '$GERRIT_BRANCH'
259 jenkins-ssh-credential: '{jenkins-ssh-credential}'
261 refspec: '$GERRIT_REFSPEC'
262 submodule-recursive: '{submodule-recursive}'
263 submodule-timeout: '{submodule-timeout}'
264 choosing-strategy: gerrit
268 server-name: '{gerrit-server-name}'
269 trigger-on: '{obj:gerrit_verify_triggers}'
271 - project-compare-type: 'ANT'
272 project-pattern: '{project}'
274 - branch-compare-type: 'ANT'
275 branch-pattern: '**/{branch}'
276 file-paths: '{obj:gerrit_trigger_file_paths}'
279 name: '{project-name}-cmake-verify-{stream}'
280 id: github-cmake-verify
285 - lf-infra-properties:
286 build-days-to-keep: '{build-days-to-keep}'
288 url: '{github-url}/{github-org}/{project}'
291 - lf-infra-github-scm:
292 url: '{git-clone-url}{github-org}/{project}'
293 refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
295 submodule-recursive: '{submodule-recursive}'
296 submodule-timeout: '{submodule-timeout}'
297 choosing-strategy: default
298 jenkins-ssh-credential: '{jenkins-ssh-credential}'
301 - github-pull-request:
302 trigger-phrase: '^(recheck|reverify)$'
303 only-trigger-phrase: false
304 status-context: 'CMake Verify'
307 included-regions: '{obj:github_included_regions}'
308 white-list-target-branches: