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
34 project-type: freestyle
36 disabled: '{disable-job}'
39 - lf-infra-properties:
40 build-days-to-keep: '{build-days-to-keep}'
43 - lf-infra-parameters:
47 lftools-version: '{lftools-version}'
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}'
92 - shell: !include-raw-escape: ../shell/lftools-install.sh
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 choosing-strategy: gerrit
122 - timed: '{obj:cron}'
124 server-name: '{gerrit-server-name}'
126 - comment-added-contains-event:
127 comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(stage-release)$'
129 - project-compare-type: 'ANT'
130 project-pattern: '{project}'
132 - branch-compare-type: 'ANT'
133 branch-pattern: '**/{branch}'
136 name: '{project-name}-cmake-stage-{stream}'
137 id: github-cmake-stage
142 - lf-infra-properties:
143 build-days-to-keep: '{build-days-to-keep}'
145 url: '{github-url}/{github-org}/{project}'
148 - lf-infra-github-scm:
149 url: '{git-clone-url}{github-org}/{project}'
150 refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
152 submodule-recursive: '{submodule-recursive}'
153 choosing-strategy: default
154 jenkins-ssh-credential: '{jenkins-ssh-credential}'
157 - timed: '{obj:cron}'
158 - github-pull-request:
159 trigger-phrase: '^(stage-release)$'
160 only-trigger-phrase: true
161 status-context: 'CMake Stage'
164 white-list-target-branches:
172 - lf_cmake_verify: &lf_cmake_verify
173 name: lf-cmake-verify
175 ######################
176 # Default parameters #
177 ######################
180 build-days-to-keep: 7
181 build-dir: '$WORKSPACE/target'
185 git-url: '$GIT_URL/$PROJECT'
186 github-url: 'https://github.com'
187 install-prefix: '$BUILD_DIR/output'
191 submodule-recursive: true
193 gerrit_verify_triggers:
194 - patchset-created-event:
196 exclude-trivial-rebase: false
197 exclude-no-code-change: false
198 - draft-published-event
199 - comment-added-contains-event:
200 comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
202 gerrit_trigger_file_paths:
203 - compare-type: REG_EXP
206 # github_included_regions MUST match gerrit_trigger_file_paths
207 github_included_regions:
210 #####################
211 # Job Configuration #
212 #####################
214 project-type: freestyle
216 disabled: '{disable-job}'
219 - lf-infra-properties:
220 build-days-to-keep: '{build-days-to-keep}'
223 - lf-infra-parameters:
227 lftools-version: '{lftools-version}'
228 - lf-cmake-parameters:
229 build-dir: '{build-dir}'
230 cmake-opts: '{cmake-opts}'
231 install-prefix: '{install-prefix}'
232 make-opts: '{make-opts}'
236 build-timeout: '{build-timeout}'
237 jenkins-ssh-credential: '{jenkins-ssh-credential}'
240 - shell: '{pre-build}'
241 - shell: !include-raw-escape: ../shell/cmake-build.sh
247 name: '{project-name}-cmake-verify-{stream}'
248 id: gerrit-cmake-verify
253 - lf-infra-gerrit-scm:
254 branch: '$GERRIT_BRANCH'
255 jenkins-ssh-credential: '{jenkins-ssh-credential}'
257 refspec: '$GERRIT_REFSPEC'
258 submodule-recursive: '{submodule-recursive}'
259 choosing-strategy: gerrit
263 server-name: '{gerrit-server-name}'
264 trigger-on: '{obj:gerrit_verify_triggers}'
266 - project-compare-type: 'ANT'
267 project-pattern: '{project}'
269 - branch-compare-type: 'ANT'
270 branch-pattern: '**/{branch}'
271 file-paths: '{obj:gerrit_trigger_file_paths}'
274 name: '{project-name}-cmake-verify-{stream}'
275 id: github-cmake-verify
280 - lf-infra-properties:
281 build-days-to-keep: '{build-days-to-keep}'
283 url: '{github-url}/{github-org}/{project}'
286 - lf-infra-github-scm:
287 url: '{git-clone-url}{github-org}/{project}'
288 refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
290 submodule-recursive: '{submodule-recursive}'
291 choosing-strategy: default
292 jenkins-ssh-credential: '{jenkins-ssh-credential}'
295 - github-pull-request:
296 trigger-phrase: '^(recheck|reverify)$'
297 only-trigger-phrase: false
298 status-context: 'CMake Verify'
301 included-regions: '{obj:github_included_regions}'
302 white-list-target-branches: