f5021d262f64a1fc2020a4f4c4d3fe905d7aa7eb
[releng/global-jjb.git] / jjb / lf-macros.yaml
1 ---
2 ############
3 # BUILDERS #
4 ############
5
6 # To take advantage of this macro, have your build write
7 # out the file 'gerrit_comment.txt' with information to post
8 # back to gerrit and include this macro in the list of builders.
9 - builder:
10     name: comment-to-gerrit
11     builders:
12       - shell: !include-raw: ../shell/comment-to-gerrit.sh
13
14 - builder:
15     name: lf-fetch-dependent-patches
16     builders:
17       - shell: !include-raw: ../shell/gerrit-fetch-dependencies.sh
18       - inject:
19           properties-file: $WORKSPACE/.dependency.properties
20
21 - builder:
22     name: lf-license-check
23     builders:
24       - inject:
25           properties-content: |
26             FILE_PATTERNS={file-patterns}
27             SPDX_DISABLE={spdx-disable}
28             LHC_VERSION={lhc-version}
29             LICENSE_EXCLUDE_PATHS={license-exclude-paths}
30             LICENSES_ALLOWED={licenses-allowed}
31       - shell: !include-raw-escape:
32           - ../shell/license-check.sh
33
34 - builder:
35     name: lf-infra-capture-instance-metadata
36     builders:
37       - shell: !include-raw:
38           - ../shell/capture-instance-metadata.sh
39
40 - builder:
41     name: lf-infra-create-netrc
42     builders:
43       - inject:
44           properties-content: "SERVER_ID={server-id}"
45       - shell: !include-raw-escape: ../shell/create-netrc.sh
46
47 - builder:
48     name: lf-infra-docker-login
49     builders:
50       - lf-provide-maven-settings:
51           global-settings-file: "{global-settings-file}"
52           settings-file: "{settings-file}"
53       - shell: !include-raw-escape: ../shell/docker-login.sh
54       - lf-provide-maven-settings-cleanup
55
56 - builder:
57     name: lf-infra-gpg-verify-git-signature
58     # TODO: Verify signature after downloading users public key from a locally
59     # created repository instead of the public keymesh. This requires a process
60     # in place to get ODL developers public keys into a local repository without
61     # increasing the job thoughput.
62     builders:
63       - shell: !include-raw: ../shell/gpg-verify-git-signature.sh
64
65 - builder:
66     name: lf-infra-pre-build
67     builders:
68       - shell: !include-raw-escape: ../shell/python-tools-install.sh
69
70 - builder:
71     name: lf-infra-ship-logs
72     builders:
73       # Ensure no pre-existing .netrc files are overriding logs config
74       - lf-provide-maven-settings-cleanup
75       - config-file-provider:
76           files:
77             - file-id: "jenkins-log-archives-settings"
78               variable: "SETTINGS_FILE"
79       - conditional-step:
80           condition-kind: regex-match
81           regex: "^.*logs-s3.*"
82           label: $S3_BUCKET
83           on-evaluation-failure: dont-run
84           steps:
85             - config-file-provider:
86                 files:
87                   - file-id: "jenkins-s3-log-ship"
88                     target: $HOME/.aws/credentials
89       - lf-infra-create-netrc:
90           server-id: logs
91       - shell: !include-raw:
92           # Ensure python-tools are installed in case job template does not
93           # call the lf-infra-pre-build macro.
94           - ../shell/python-tools-install.sh
95       - shell: !include-raw:
96           - ../shell/sudo-logs.sh
97       - shell: !include-raw:
98           - ../shell/job-cost.sh
99       - shell: !include-raw:
100           - ../shell/logs-deploy.sh
101       - shell: !include-raw:
102           - ../shell/logs-clear-credentials.sh
103       - description-setter:
104           regexp: "(^(Nexus|S3) build logs: .*)"
105
106 - builder:
107     name: lf-infra-package-listing
108     builders:
109       - shell: !include-raw:
110           - ../shell/package-listing.sh
111
112 - builder:
113     name: lf-infra-packer-build
114     builders:
115       - conditional-step:
116           condition-kind: boolean-expression
117           condition-expression: "{openstack}"
118           steps:
119             - config-file-provider:
120                 files:
121                   - file-id: clouds-yaml
122                     target: "$HOME/.config/openstack/clouds.yaml"
123             - inject:
124                 properties-content: OS_CLOUD={openstack-cloud}
125       - config-file-provider:
126           files:
127             - file-id: "{packer-cloud-settings}"
128               variable: CLOUDENV
129       - inject:
130           properties-content: |
131             PACKER_BUILDER={packer-builder}
132             PACKER_PLATFORM={platform}
133             PACKER_TEMPLATE={template}
134             PACKER_VERSION={packer-version}
135             UPDATE_CLOUD_IMAGE={update-cloud-image}
136       - shell: !include-raw-escape:
137           - ../shell/packer-install.sh
138           - ../shell/packer-build.sh
139       - shell: !include-raw:
140           - ../shell/packer-clear-credentials.sh
141
142 - builder:
143     name: lf-infra-packer-validate
144     builders:
145       - conditional-step:
146           condition-kind: boolean-expression
147           condition-expression: "{openstack}"
148           steps:
149             - config-file-provider:
150                 files:
151                   - file-id: clouds-yaml
152                     target: "$HOME/.config/openstack/clouds.yaml"
153             - inject:
154                 properties-content: OS_CLOUD={openstack-cloud}
155       - config-file-provider:
156           files:
157             - file-id: "{packer-cloud-settings}"
158               variable: CLOUDENV
159       - inject:
160           properties-content: |
161             PACKER_VERSION={packer-version}
162       - shell: !include-raw-escape:
163           - ../shell/packer-install.sh
164           - ../shell/packer-validate.sh
165       - shell: !include-raw:
166           - ../shell/packer-clear-credentials.sh
167
168 - builder:
169     name: lf-infra-update-packer-images
170     builders:
171       - shell: !include-raw: ../shell/update-cloud-images.sh
172
173 - builder:
174     name: lf-infra-push-gerrit-patch
175     builders:
176       - inject:
177           properties-content: |
178             PROJECT={project}
179             GERRIT_COMMIT_MESSAGE={gerrit-commit-message}
180             GERRIT_HOST={gerrit-host}
181             GERRIT_TOPIC={gerrit-topic}
182             GERRIT_USER={gerrit-user}
183             REVIEWERS_EMAIL={reviewers-email}
184       - shell: !include-raw-escape: ../shell/gerrit-push-patch.sh
185
186 - builder:
187     name: lf-infra-sysstat
188     builders:
189       - shell: !include-raw:
190           - ../shell/sysstat.sh
191
192 - builder:
193     name: lf-jacoco-nojava-workaround
194     builders:
195       - shell: "mkdir -p $WORKSPACE/target/classes $WORKSPACE/jacoco/classes"
196
197 - builder:
198     name: lf-infra-deploy-maven-file
199     builders:
200       - lf-maven-install:
201           mvn-version: "{mvn-version}"
202       - lf-provide-maven-settings:
203           global-settings-file: "{global-settings-file}"
204           settings-file: "{settings-file}"
205       - inject:
206           properties-content: |
207             MAVEN_REPO_URL={maven-repo-url}
208             REPO_ID={repo-id}
209             GROUP_ID={group-id}
210             UPLOAD_FILES_PATH={upload-files-dir}
211       - shell: !include-raw-escape:
212           - ../shell/common-variables.sh
213           - ../shell/deploy-maven-file.sh
214       - lf-provide-maven-settings-cleanup
215
216 - builder:
217     name: lf-maven-central
218     builders:
219       - conditional-step:
220           condition-kind: boolean-expression
221           condition-expression: "{mvn-central}"
222           steps:
223             - lf-provide-maven-settings:
224                 global-settings-file: "{mvn-global-settings}"
225                 settings-file: "{mvn-settings}"
226             - lf-infra-create-netrc:
227                 server-id: "ossrh"
228             - inject:
229                 properties-content: "OSSRH_PROFILE_ID={ossrh-profile-id}"
230             - shell: !include-raw-escape: ../shell/maven-central.sh
231             - lf-provide-maven-settings-cleanup
232
233 - builder:
234     name: lf-packagecloud-file-provider
235     builders:
236       - config-file-provider:
237           files:
238             - file-id: ".packagecloud"
239               target: "$HOME/.packagecloud"
240       - config-file-provider:
241           files:
242             - file-id: "packagecloud_api"
243               target: "$HOME/packagecloud_api"
244
245 - builder:
246     name: lf-packagecloud-push
247     builders:
248       - inject:
249           properties-content: |
250             BUILD_DIR={build-dir}
251             PACKAGECLOUD_ACCOUNT={packagecloud-account}
252             PACKAGECLOUD_REPO={packagecloud-repo}
253             DEBIAN_DISTRIBUTION_VERSIONS={debian-distribution-versions}
254             RPM_DISTRIBUTION_VERSIONS={rpm-distribution-versions}
255       - shell: !include-raw-escape: ../shell/packagecloud-push.sh
256
257 - builder:
258     name: lf-maven-install
259     builders:
260       # Create a $HOME/.wgetrc to make the Maven download quiet.
261       - shell: 'echo "quiet=on" > "$HOME/.wgetrc"'
262       - maven-target:
263           maven-version: "{mvn-version}"
264           goals: "--version"
265       - shell: 'rm "$HOME/.wgetrc"'
266
267 - builder:
268     name: lf-provide-maven-settings
269     builders:
270       - config-file-provider:
271           files:
272             - file-id: "{global-settings-file}"
273               variable: "GLOBAL_SETTINGS_FILE"
274             - file-id: "{settings-file}"
275               variable: "SETTINGS_FILE"
276
277 - builder:
278     name: lf-provide-maven-settings-cleanup
279     builders:
280       - shell: |
281           #!/bin/bash
282           set +e  # DO NOT cause build failure if any of the rm calls fail.
283
284           rm -f "$GLOBAL_SETTINGS_FILE" "$SETTINGS_FILE"
285
286           # In some cases we use the lf-provide-maven-settings macro to produce
287           # a "$HOME/.netrc" file containing credentials. Remove that file here
288           # too if it exists.
289           rm -f "$HOME/.netrc"
290
291           # DO NOT fail build if any of the above lines fail.
292           exit 0
293
294 - builder:
295     name: lf-rtd-trigger-build
296     builders:
297       - inject:
298           properties-content: |
299             RTD_BUILD_URL={rtd-build-url}
300             RTD_TOKEN={rtd-token}
301       - shell: !include-raw-escape: ../shell/rtd-trigger-build.sh
302
303 - builder:
304     name: lf-rtd-verify
305     builders:
306       - inject:
307           properties-content: |
308             DOC_DIR={doc-dir}
309             PYTHON={python-version}
310       - shell: !include-raw-escape: ../shell/tox-install.sh
311       - shell: !include-raw-escape: ../shell/rtd-verify.sh
312
313 - builder:
314     name: lf-rtdv3-build
315     builders:
316       - inject:
317           properties-content: |
318             DEFAULT_VERSION={default-version}
319       - shell: !include-raw-escape: ../shell/rtdv3.sh
320
321 - builder:
322     name: check-info-votes
323     builders:
324       - inject:
325           properties-content: JENKINS_SSH_CREDENTIAL={jenkins-ssh-credential}
326       - shell: !include-raw-escape: ../shell/check-info-votes.sh
327
328 - builder:
329     name: lf-release
330     builders:
331       - config-file-provider:
332           files:
333             - file-id: lftoolsini
334               target: "$HOME/.config/lftools/lftools.ini"
335       - shell: !include-raw: ../shell/release-job.sh
336
337 - builder:
338     name: lf-sigul-sign-dir
339     # Requires that Jenkins be configured with SIGUL_BRIDGE_IP as a global
340     # Environment variable
341     builders:
342       - conditional-step:
343           condition-kind: boolean-expression
344           condition-expression: "{sign-artifacts}"
345           steps:
346             - config-file-provider:
347                 files:
348                   - file-id: sigul-config
349                     variable: SIGUL_CONFIG
350                   - file-id: sigul-password
351                     variable: SIGUL_PASSWORD
352                   - file-id: sigul-pki
353                     variable: SIGUL_PKI
354             - shell: !include-raw-escape: ../shell/sigul-configuration.sh
355             - shell: !include-raw-escape: ../shell/sigul-install.sh
356             - inject:
357                 properties-content: |
358                   SIGN_DIR={sign-dir}
359                   SIGN_MODE={sign-mode}
360             - shell: !include-raw-escape:
361                 - ../shell/sigul-sign-dir.sh
362             - shell: !include-raw-escape: ../shell/sigul-configuration-cleanup.sh
363
364 - builder:
365     name: lf-infra-provide-docker-cleanup
366     builders:
367       - shell: |
368           #!/bin/bash
369           set +e  # DO NOT cause build failure if docker rmi fails
370           docker rmi -f $(docker images -a -q)
371           exit 0
372
373 - builder:
374     name: lf-infra-sonar
375     # Run a Sonar Jenkins Plugin
376     builders:
377       - sonar:
378           sonar-name: Sonar
379           scanner-name: SonarQubeScanner
380           task: "{sonar-task}"
381           project: "{sonar-project-file}"
382           properties: "{sonar-properties}"
383           java-opts: "{sonar-java-opts}"
384           additional-arguments: "{sonar-additional-args}"
385
386 - builder:
387     name: lf-infra-sonar-with-prescan
388     # Run a Sonar Jenkins Plugin
389     builders:
390       - lf-sonar-prescan # Must be defined by caller
391       - sonar:
392           sonar-name: Sonar
393           scanner-name: SonarQubeScanner
394           task: "{sonar-task}"
395           project: "{sonar-project-file}"
396           properties: "{sonar-properties}"
397           java-opts: "{sonar-java-opts}"
398           additional-arguments: "{sonar-additional-args}"
399
400 - builder:
401     name: lf-infra-pipeline-verify
402     builders:
403       - shell: !include-raw-escape: ../shell/pipeline-linter.sh
404
405 ##############
406 # PARAMETERS #
407 ##############
408
409 - parameter:
410     name: lf-autotools-parameters
411     # Parameters for configure-make builds.
412     parameters:
413       - string:
414           name: CONFIGURE_OPTS
415           default: "{configure-opts}"
416           description: |
417             Options to pass to configure.
418             Example: --build=i686-pc-linux-gnu
419       - string:
420           name: INSTALL_PREFIX
421           default: "{install-prefix}"
422           description: |
423             Install prefix for configure.
424             Usually a workspace subdirectory.
425       - string:
426           name: MAKE_OPTS
427           default: "{make-opts}"
428           description: |
429             Options to pass to make.
430             Example: -j8 all
431
432 - parameter:
433     name: lf-clm-parameters
434     parameters:
435       - string:
436           name: NEXUS_IQ_STAGE
437           default: "{nexus-iq-stage}"
438           description: |
439             Stage the policy evaluation will be run against on the Nexus IQ Server.
440
441 - parameter:
442     name: lf-cmake-parameters
443     # Parameters useful in CMake builds.
444     parameters:
445       - string:
446           name: BUILD_DIR
447           default: "{build-dir}"
448           description: "Directory to build the project in."
449       - string:
450           name: CMAKE_OPTS
451           default: "{cmake-opts}"
452           description: |
453             Options to pass to CMAKE.
454             Example: -DCMAKE_INSTALL_PREFIX=$WORKSPACE/target/output
455       - string:
456           name: INSTALL_PREFIX
457           default: "{install-prefix}"
458           description: "Install prefix for C/C++ builds. Example: /usr/local"
459       - string:
460           name: MAKE_OPTS
461           default: "{make-opts}"
462           description: "Options to pass to make. Example: -j8"
463
464 - parameter:
465     name: lf-infra-maven-parameters
466     parameters:
467       - string:
468           name: M2_HOME
469           # Sets an env var for shell scripts to be able to call the dynamically
470           # installed maven without having to calculate the M2_HOME themselves.
471           default: "/w/tools/hudson.tasks.Maven_MavenInstallation/{mvn-version}"
472           description: "Maven selector to be used by shell scripts"
473       - string:
474           name: MAVEN_OPTS
475           default: "{mvn-opts}"
476           description: |
477             Maven Java opts. Example: -Xmx1024m -XX:MaxPermSize=256m
478       - string:
479           name: MAVEN_PARAMS
480           default: "{mvn-params}"
481           description: |
482             Maven parameters to pass to the mvn command.
483       - string:
484           name: MVN
485           # Sets an env var for shell scripts to be able to call the dynamically
486           # installed maven without having to calculate the path themselves.
487           # yamllint disable-line rule:line-length
488           default: "/w/tools/hudson.tasks.Maven_MavenInstallation/{mvn-version}/bin/mvn"
489           description: "Maven selector to be used by shell scripts"
490
491 - parameter:
492     name: lf-infra-openstack-parameters
493     parameters:
494       - string:
495           name: OS_CLOUD
496           default: "{os-cloud}"
497           description: |
498             The name of a cloud configuration in clouds.yaml. OS_CLOUD is a
499             variable name that is significant to openstack client as a
500             environment variable. Please refer to the documentation for
501             further details.
502             https://docs.openstack.org/developer/python-openstackclient/
503
504 - parameter:
505     name: lf-infra-parameters
506     # Standard parameters used in the LF CI environments. Gerrit variables are
507     # not used by GitHub projects, but defining them isn't harmful.
508     parameters:
509       - string:
510           name: PROJECT
511           default: "{project}"
512           description: |
513             Parameter to identify a SCM project to build. This is typically
514             the project repo path. For example: ofextensions/circuitsw
515       - string:
516           name: STREAM
517           default: "{stream}"
518           description: |
519             Stream is often set to the same name as 'branch' but can
520             sometimes be used as a name representing a project's release code
521             name.
522       - string:
523           name: GERRIT_PROJECT
524           default: "{project}"
525           description: |
526             Gerrit Trigger provided parameter to identify Gerrit project that
527             triggered the build. This is typically the project repo path as
528             exists in Gerrit. For example: ofextensions/circuitsw
529
530             If using Gerrit, in a manual build this should match the PROJECT
531             parameter above.
532       - string:
533           name: GERRIT_BRANCH
534           default: "{branch}"
535           description: |
536             Gerrit Trigger provided parameter to identify a Gerrit branch.
537
538             If using Gerrit, in a manual build override with the branch to
539             build against.
540       - string:
541           name: GERRIT_REFSPEC
542           default: "refs/heads/{branch}"
543           description: |
544             Gerrit Trigger provided parameter to identify a refspec to fetch
545             from Gerrit.
546
547             If using Gerrit, in a manual build override with a refspec.
548             https://git-scm.com/book/en/v2/Git-Internals-The-Refspec
549             For example: 'refs/heads/master'
550       - string:
551           name: sha1
552           default: "origin/{branch}"
553           description: |
554             GitHub PR Trigger provided parameter for specifying the commit
555             to checkout.
556
557             If using GitHub, in a manual build override with a branch path or
558             sha1 hash to a specific commit. For example: 'origin/master'
559
560 - parameter:
561     name: lf-infra-node-parameters
562     parameters:
563       - string:
564           name: NODE_DIR
565           default: "{node-dir}"
566           description: Path to a Node project directory.
567       - string:
568           name: NODE_VERSION
569           default: "{node-version}"
570           description: Version of NodeJS to install.
571
572 - parameter:
573     name: lf-infra-tox-parameters
574     parameters:
575       - string:
576           name: TOX_DIR
577           default: "{tox-dir}"
578           description: |
579             Path to directory containing tox.ini file.
580       - string:
581           name: TOX_ENVS
582           default: "{tox-envs}"
583           description: |
584             Tox environments to run build against.
585             Example: docs,py2,py3
586
587 - parameter:
588     name: lf-build-with-parameters-maven-release
589     parameters:
590       - string:
591           name: VERSION
592           default: ""
593           description: "Version to release, for example: 1.0.0"
594       - string:
595           name: GIT_TAG
596           default: ""
597           description: "Tag to push to git repo; optional, defaults to VERSION"
598       - string:
599           name: LOG_DIR
600           default: ""
601           description: "Log dir, for example: project-maven-stage-master/17/"
602       - string:
603           name: OVERRIDE_SEMVER_REGEX
604           default: ""
605           description: "Override Semantic Version (SemVer) Regular Expression. Ex: '.*'"
606       - choice:
607           name: DISTRIBUTION_TYPE
608           choices:
609             - None
610             - container
611             - maven
612           description: "Set to maven for build with parameters"
613       - bool:
614           name: USE_RELEASE_FILE
615           default: "{use-release-file}"
616           description: "Set to False for job built with parameters"
617
618 ##############
619 # PROPERTIES #
620 ##############
621
622 - property:
623     name: lf-infra-properties
624     properties:
625       - build-discarder:
626           # Allow build data to be stored at a length configured by the
627           # downstream project.
628           days-to-keep: "{build-days-to-keep}"
629           # Do not allow artifacts to be stored in Jenkins.
630           artifact-num-to-keep: 0
631
632 ##############
633 # PUBLISHERS #
634 ##############
635
636 - publisher:
637     name: lf-jacoco-report
638     publishers:
639       - jacoco:
640           exec-pattern: "**/**.exec"
641           class-pattern: "**/classes"
642           source-pattern: "**/src/main/java"
643           # yamllint disable-line rule:line-length
644           exclusion-pattern: "**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**"
645           status-update: true
646           targets:
647             - branch:
648                 healthy: 10
649                 unhealthy: 20
650             - method:
651                 healthy: 50
652                 unhealthy: 40
653
654 - publisher:
655     name: lf-infra-publish
656     # lf-infra macro to finish up a build.
657     #
658     # Handles the following:
659     #   - Shipping logs to Nexus logs site repository
660     #   - Cleanup workspace
661     publishers:
662       - postbuildscript:
663           builders:
664             - role: BOTH
665               build-on:
666                 - ABORTED
667                 - FAILURE
668                 - NOT_BUILT
669                 - SUCCESS
670                 - UNSTABLE
671               build-steps:
672                 - lf-infra-sysstat
673                 - lf-infra-package-listing
674                 - lf-infra-capture-instance-metadata
675                 - lf-infra-ship-logs
676           mark-unstable-if-failed: true
677       - workspace-cleanup:
678           exclude:
679             # Do not clean up *.jenkins-trigger files for jobs that use a
680             # properties file as input for triggering another build.
681             - "**/*.jenkins-trigger"
682           fail-build: false
683
684 - publisher:
685     name: lf-infra-publish-windows
686     # lf-infra macro to finish up a build.
687     #
688     # Handles the following:
689     #   - Shipping logs to Nexus logs site repository
690     #   - Cleanup workspace
691     publishers:
692       # TODO: RELENG-1228 Develop log shipping script for Windows systems
693       # - postbuildscript:
694       #     builders:
695       #       - role: BOTH
696       #         build-on:
697       #           - ABORTED
698       #           - FAILURE
699       #           - NOT_BUILT
700       #           - SUCCESS
701       #           - UNSTABLE
702       #         build-steps:
703       #           - lf-infra-ship-logs-windows
704       #     mark-unstable-if-failed: true
705       - workspace-cleanup:
706           exclude:
707             # Do not clean up *.jenkins-trigger files for jobs that use a
708             # properties file as input for triggering another build.
709             - "**/*.jenkins-trigger"
710           fail-build: false
711
712 - publisher:
713     name: global-jjb-email-notification
714     publishers:
715       - email-ext:
716           recipients: "{email-recipients}"
717           reply-to: ""
718           content-type: default
719           subject: "{email-prefix} $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!"
720           body: |
721             $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
722
723             Please refer to the logs server URL for console logs when possible
724             and use the Jenkins Build URL as a last resort.
725
726             Jenkins Build URL:
727             $BUILD_URL
728           unstable: true
729           fixed: true
730           send-to:
731             - recipients
732
733 #######
734 # SCM #
735 #######
736
737 - scm:
738     name: lf-infra-gerrit-scm
739     scm:
740       - git:
741           credentials-id: "{jenkins-ssh-credential}"
742           url: "{git-url}"
743           refspec: "{refspec}"
744           branches:
745             - "refs/heads/{branch}"
746           skip-tag: true
747           wipe-workspace: true
748           submodule:
749             disable: "{submodule-disable}"
750             recursive: "{submodule-recursive}"
751             timeout: "{submodule-timeout}"
752           choosing-strategy: "{choosing-strategy}"
753
754 - scm:
755     name: lf-infra-github-scm
756     scm:
757       - git:
758           credentials-id: "{jenkins-ssh-credential}"
759           url: "{url}"
760           refspec: "{refspec}"
761           branches:
762             - "{branch}"
763           skip-tag: true
764           wipe-workspace: true
765           submodule:
766             disable: "{submodule-disable}"
767             recursive: "{submodule-recursive}"
768             timeout: "{submodule-timeout}"
769           choosing-strategy: "{choosing-strategy}"
770
771 ############
772 # WRAPPERS #
773 ############
774
775 - wrapper:
776     name: lf-infra-wrappers-common
777     wrappers:
778       - mask-passwords
779       - timeout:
780           type: absolute
781           timeout: "{build-timeout}"
782           timeout-var: "BUILD_TIMEOUT"
783           fail: true
784       - timestamps
785       - openstack:
786           single-use: true
787
788 - wrapper:
789     name: lf-infra-wrappers
790     wrappers:
791       - lf-infra-wrappers-common:
792           build-timeout: "{build-timeout}"
793       - config-file-provider:
794           files:
795             - file-id: npmrc
796               target: "$HOME/.npmrc"
797             - file-id: pipconf
798               target: "$HOME/.config/pip/pip.conf"
799       - ssh-agent-credentials:
800           users:
801             - "{jenkins-ssh-credential}"
802
803 - wrapper:
804     name: lf-infra-wrappers-windows
805     wrappers:
806       - lf-infra-wrappers-common:
807           build-timeout: "{build-timeout}"