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 - lf-cmake-parameters:
49 build-dir: '{build-dir}'
50 cmake-opts: '{cmake-opts}'
51 install-prefix: '{install-prefix}'
52 make-opts: '{make-opts}'
55 default: '{nexus-group-id}'
56 description: 'Project Group ID in Nexus to upload to.'
58 name: STAGING_PROFILE_ID
59 default: '{staging-profile-id}'
60 description: 'Nexus staging profile ID.'
67 Project version to stage release as. There are 2 methods for
70 1) Defined explicitly here.
71 2) Leave this value blank and set /tmp/artifact_version
73 Use method 2 in conjunction with 'pre-build' configuration to
74 generate the artifact_version automatically from files in the
75 project's repository. For example with pre-build script:
78 MAJOR_VERSION="$(grep 'set(OCIO_VERSION_MAJOR' CMakeLists.txt \
79 | awk '{{print $NF}}' | awk -F')' '{{print $1}}')"
80 MINOR_VERSION="$(grep 'set(OCIO_VERSION_MINOR' CMakeLists.txt \
81 | awk '{{print $NF}}' | awk -F')' '{{print $1}}')"
82 PATCH_VERSION="$(grep 'set(OCIO_VERSION_PATCH' CMakeLists.txt \
83 | awk '{{print $NF}}' | awk -F')' '{{print $1}}')"
84 echo "${{MAJOR_VERSION}}.${{MINOR_VERSION}}.${{PATCH_VERSION}}" > /tmp/artifact_version
88 build-timeout: '{build-timeout}'
89 jenkins-ssh-credential: '{jenkins-ssh-credential}'
93 - lf-provide-maven-settings:
94 global-settings-file: '{mvn-global-settings}'
95 settings-file: '{mvn-settings}'
96 - lf-infra-create-netrc:
98 - shell: '{pre-build}'
99 - shell: !include-raw-escape: ../shell/cmake-build.sh
100 - shell: !include-raw-escape: ../shell/cmake-stage.sh
101 - lf-provide-maven-settings-cleanup
107 name: '{project-name}-cmake-stage-{stream}'
108 id: gerrit-cmake-stage
113 - lf-infra-gerrit-scm:
114 branch: '$GERRIT_BRANCH'
115 jenkins-ssh-credential: '{jenkins-ssh-credential}'
117 refspec: '$GERRIT_REFSPEC'
118 submodule-recursive: '{submodule-recursive}'
119 submodule-timeout: '{submodule-timeout}'
120 choosing-strategy: gerrit
123 - timed: '{obj:cron}'
125 server-name: '{gerrit-server-name}'
127 - comment-added-contains-event:
128 comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(stage-release)$'
130 - project-compare-type: 'ANT'
131 project-pattern: '{project}'
133 - branch-compare-type: 'ANT'
134 branch-pattern: '**/{branch}'
137 name: '{project-name}-cmake-stage-{stream}'
138 id: github-cmake-stage
143 - lf-infra-properties:
144 build-days-to-keep: '{build-days-to-keep}'
146 url: '{github-url}/{github-org}/{project}'
149 - lf-infra-github-scm:
150 url: '{git-clone-url}{github-org}/{project}'
151 refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
153 submodule-recursive: '{submodule-recursive}'
154 submodule-timeout: '{submodule-timeout}'
155 choosing-strategy: default
156 jenkins-ssh-credential: '{jenkins-ssh-credential}'
159 - timed: '{obj:cron}'
160 - github-pull-request:
161 trigger-phrase: '^(stage-release)$'
162 only-trigger-phrase: true
163 status-context: 'CMake Stage'
166 white-list-target-branches:
174 - lf_cmake_verify: &lf_cmake_verify
175 name: lf-cmake-verify
177 ######################
178 # Default parameters #
179 ######################
182 build-days-to-keep: 7
183 build-dir: '$WORKSPACE/target'
187 git-url: '$GIT_URL/$PROJECT'
188 github-url: 'https://github.com'
189 install-prefix: '$BUILD_DIR/output'
193 submodule-recursive: true
194 submodule-timeout: 10
196 gerrit_verify_triggers:
197 - patchset-created-event:
199 exclude-trivial-rebase: false
200 exclude-no-code-change: false
201 - draft-published-event
202 - comment-added-contains-event:
203 comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
205 gerrit_trigger_file_paths:
206 - compare-type: REG_EXP
209 # github_included_regions MUST match gerrit_trigger_file_paths
210 github_included_regions:
213 #####################
214 # Job Configuration #
215 #####################
217 project-type: freestyle
219 disabled: '{disable-job}'
222 - lf-infra-properties:
223 build-days-to-keep: '{build-days-to-keep}'
226 - lf-infra-parameters:
230 - lf-cmake-parameters:
231 build-dir: '{build-dir}'
232 cmake-opts: '{cmake-opts}'
233 install-prefix: '{install-prefix}'
234 make-opts: '{make-opts}'
238 build-timeout: '{build-timeout}'
239 jenkins-ssh-credential: '{jenkins-ssh-credential}'
242 - shell: '{pre-build}'
243 - shell: !include-raw-escape: ../shell/cmake-build.sh
249 name: '{project-name}-cmake-verify-{stream}'
250 id: gerrit-cmake-verify
255 - lf-infra-gerrit-scm:
256 branch: '$GERRIT_BRANCH'
257 jenkins-ssh-credential: '{jenkins-ssh-credential}'
259 refspec: '$GERRIT_REFSPEC'
260 submodule-recursive: '{submodule-recursive}'
261 submodule-timeout: '{submodule-timeout}'
262 choosing-strategy: gerrit
266 server-name: '{gerrit-server-name}'
267 trigger-on: '{obj:gerrit_verify_triggers}'
269 - project-compare-type: 'ANT'
270 project-pattern: '{project}'
272 - branch-compare-type: 'ANT'
273 branch-pattern: '**/{branch}'
274 file-paths: '{obj:gerrit_trigger_file_paths}'
277 name: '{project-name}-cmake-verify-{stream}'
278 id: github-cmake-verify
283 - lf-infra-properties:
284 build-days-to-keep: '{build-days-to-keep}'
286 url: '{github-url}/{github-org}/{project}'
289 - lf-infra-github-scm:
290 url: '{git-clone-url}{github-org}/{project}'
291 refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
293 submodule-recursive: '{submodule-recursive}'
294 submodule-timeout: '{submodule-timeout}'
295 choosing-strategy: default
296 jenkins-ssh-credential: '{jenkins-ssh-credential}'
299 - github-pull-request:
300 trigger-phrase: '^(recheck|reverify)$'
301 only-trigger-phrase: false
302 status-context: 'CMake Verify'
305 included-regions: '{obj:github_included_regions}'
306 white-list-target-branches: