Override semver regex for projects
[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 ##############
401 # PARAMETERS #
402 ##############
403
404 - parameter:
405     name: lf-autotools-parameters
406     # Parameters for configure-make builds.
407     parameters:
408       - string:
409           name: CONFIGURE_OPTS
410           default: "{configure-opts}"
411           description: |
412             Options to pass to configure.
413             Example: --build=i686-pc-linux-gnu
414       - string:
415           name: INSTALL_PREFIX
416           default: "{install-prefix}"
417           description: |
418             Install prefix for configure.
419             Usually a workspace subdirectory.
420       - string:
421           name: MAKE_OPTS
422           default: "{make-opts}"
423           description: |
424             Options to pass to make.
425             Example: -j8 all
426
427 - parameter:
428     name: lf-clm-parameters
429     parameters:
430       - string:
431           name: NEXUS_IQ_STAGE
432           default: "{nexus-iq-stage}"
433           description: |
434             Stage the policy evaluation will be run against on the Nexus IQ Server.
435
436 - parameter:
437     name: lf-cmake-parameters
438     # Parameters useful in CMake builds.
439     parameters:
440       - string:
441           name: BUILD_DIR
442           default: "{build-dir}"
443           description: "Directory to build the project in."
444       - string:
445           name: CMAKE_OPTS
446           default: "{cmake-opts}"
447           description: |
448             Options to pass to CMAKE.
449             Example: -DCMAKE_INSTALL_PREFIX=$WORKSPACE/target/output
450       - string:
451           name: INSTALL_PREFIX
452           default: "{install-prefix}"
453           description: "Install prefix for C/C++ builds. Example: /usr/local"
454       - string:
455           name: MAKE_OPTS
456           default: "{make-opts}"
457           description: "Options to pass to make. Example: -j8"
458
459 - parameter:
460     name: lf-infra-maven-parameters
461     parameters:
462       - string:
463           name: M2_HOME
464           # Sets an env var for shell scripts to be able to call the dynamically
465           # installed maven without having to calculate the M2_HOME themselves.
466           default: "/w/tools/hudson.tasks.Maven_MavenInstallation/{mvn-version}"
467           description: "Maven selector to be used by shell scripts"
468       - string:
469           name: MAVEN_OPTS
470           default: "{mvn-opts}"
471           description: |
472             Maven Java opts. Example: -Xmx1024m -XX:MaxPermSize=256m
473       - string:
474           name: MAVEN_PARAMS
475           default: "{mvn-params}"
476           description: |
477             Maven parameters to pass to the mvn command.
478       - string:
479           name: MVN
480           # Sets an env var for shell scripts to be able to call the dynamically
481           # installed maven without having to calculate the path themselves.
482           # yamllint disable-line rule:line-length
483           default: "/w/tools/hudson.tasks.Maven_MavenInstallation/{mvn-version}/bin/mvn"
484           description: "Maven selector to be used by shell scripts"
485
486 - parameter:
487     name: lf-infra-openstack-parameters
488     parameters:
489       - string:
490           name: OS_CLOUD
491           default: "{os-cloud}"
492           description: |
493             The name of a cloud configuration in clouds.yaml. OS_CLOUD is a
494             variable name that is significant to openstack client as a
495             environment variable. Please refer to the documentation for
496             further details.
497             https://docs.openstack.org/developer/python-openstackclient/
498
499 - parameter:
500     name: lf-infra-parameters
501     # Standard parameters used in the LF CI environments. Gerrit variables are
502     # not used by GitHub projects, but defining them isn't harmful.
503     parameters:
504       - string:
505           name: PROJECT
506           default: "{project}"
507           description: |
508             Parameter to identify a SCM project to build. This is typically
509             the project repo path. For example: ofextensions/circuitsw
510       - string:
511           name: STREAM
512           default: "{stream}"
513           description: |
514             Stream is often set to the same name as 'branch' but can
515             sometimes be used as a name representing a project's release code
516             name.
517       - string:
518           name: GERRIT_PROJECT
519           default: "{project}"
520           description: |
521             Gerrit Trigger provided parameter to identify Gerrit project that
522             triggered the build. This is typically the project repo path as
523             exists in Gerrit. For example: ofextensions/circuitsw
524
525             If using Gerrit, in a manual build this should match the PROJECT
526             parameter above.
527       - string:
528           name: GERRIT_BRANCH
529           default: "{branch}"
530           description: |
531             Gerrit Trigger provided parameter to identify a Gerrit branch.
532
533             If using Gerrit, in a manual build override with the branch to
534             build against.
535       - string:
536           name: GERRIT_REFSPEC
537           default: "refs/heads/{branch}"
538           description: |
539             Gerrit Trigger provided parameter to identify a refspec to fetch
540             from Gerrit.
541
542             If using Gerrit, in a manual build override with a refspec.
543             https://git-scm.com/book/en/v2/Git-Internals-The-Refspec
544             For example: 'refs/heads/master'
545       - string:
546           name: sha1
547           default: "origin/{branch}"
548           description: |
549             GitHub PR Trigger provided parameter for specifying the commit
550             to checkout.
551
552             If using GitHub, in a manual build override with a branch path or
553             sha1 hash to a specific commit. For example: 'origin/master'
554
555 - parameter:
556     name: lf-infra-node-parameters
557     parameters:
558       - string:
559           name: NODE_DIR
560           default: "{node-dir}"
561           description: Path to a Node project directory.
562       - string:
563           name: NODE_VERSION
564           default: "{node-version}"
565           description: Version of NodeJS to install.
566
567 - parameter:
568     name: lf-infra-tox-parameters
569     parameters:
570       - string:
571           name: TOX_DIR
572           default: "{tox-dir}"
573           description: |
574             Path to directory containing tox.ini file.
575       - string:
576           name: TOX_ENVS
577           default: "{tox-envs}"
578           description: |
579             Tox environments to run build against.
580             Example: docs,py2,py3
581
582 - parameter:
583     name: lf-build-with-parameters-maven-release
584     parameters:
585       - string:
586           name: VERSION
587           default: ""
588           description: "Version to release, for example: 1.0.0"
589       - string:
590           name: GIT_TAG
591           default: ""
592           description: "Tag to push to git repo; optional, defaults to VERSION"
593       - string:
594           name: LOG_DIR
595           default: ""
596           description: "Log dir, for example: project-maven-stage-master/17/"
597       - string:
598           name: OVERRIDE_SEMVER_REGEX
599           default: ""
600           description: "Override Semantic Version (SemVer) Regular Expression. Ex: '.*'"
601       - choice:
602           name: DISTRIBUTION_TYPE
603           choices:
604             - None
605             - container
606             - maven
607           description: "Set to maven for build with parameters"
608       - bool:
609           name: USE_RELEASE_FILE
610           default: "{use-release-file}"
611           description: "Set to False for job built with parameters"
612
613 ##############
614 # PROPERTIES #
615 ##############
616
617 - property:
618     name: lf-infra-properties
619     properties:
620       - build-discarder:
621           # Allow build data to be stored at a length configured by the
622           # downstream project.
623           days-to-keep: "{build-days-to-keep}"
624           # Do not allow artifacts to be stored in Jenkins.
625           artifact-num-to-keep: 0
626
627 ##############
628 # PUBLISHERS #
629 ##############
630
631 - publisher:
632     name: lf-jacoco-report
633     publishers:
634       - jacoco:
635           exec-pattern: "**/**.exec"
636           class-pattern: "**/classes"
637           source-pattern: "**/src/main/java"
638           # yamllint disable-line rule:line-length
639           exclusion-pattern: "**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**"
640           status-update: true
641           targets:
642             - branch:
643                 healthy: 10
644                 unhealthy: 20
645             - method:
646                 healthy: 50
647                 unhealthy: 40
648
649 - publisher:
650     name: lf-infra-publish
651     # lf-infra macro to finish up a build.
652     #
653     # Handles the following:
654     #   - Shipping logs to Nexus logs site repository
655     #   - Cleanup workspace
656     publishers:
657       - postbuildscript:
658           builders:
659             - role: BOTH
660               build-on:
661                 - ABORTED
662                 - FAILURE
663                 - NOT_BUILT
664                 - SUCCESS
665                 - UNSTABLE
666               build-steps:
667                 - lf-infra-sysstat
668                 - lf-infra-package-listing
669                 - lf-infra-capture-instance-metadata
670                 - lf-infra-ship-logs
671           mark-unstable-if-failed: true
672       - workspace-cleanup:
673           exclude:
674             # Do not clean up *.jenkins-trigger files for jobs that use a
675             # properties file as input for triggering another build.
676             - "**/*.jenkins-trigger"
677           fail-build: false
678
679 - publisher:
680     name: lf-infra-publish-windows
681     # lf-infra macro to finish up a build.
682     #
683     # Handles the following:
684     #   - Shipping logs to Nexus logs site repository
685     #   - Cleanup workspace
686     publishers:
687       # TODO: RELENG-1228 Develop log shipping script for Windows systems
688       # - postbuildscript:
689       #     builders:
690       #       - role: BOTH
691       #         build-on:
692       #           - ABORTED
693       #           - FAILURE
694       #           - NOT_BUILT
695       #           - SUCCESS
696       #           - UNSTABLE
697       #         build-steps:
698       #           - lf-infra-ship-logs-windows
699       #     mark-unstable-if-failed: true
700       - workspace-cleanup:
701           exclude:
702             # Do not clean up *.jenkins-trigger files for jobs that use a
703             # properties file as input for triggering another build.
704             - "**/*.jenkins-trigger"
705           fail-build: false
706
707 - publisher:
708     name: global-jjb-email-notification
709     publishers:
710       - email-ext:
711           recipients: "{email-recipients}"
712           reply-to: ""
713           content-type: default
714           subject: "{email-prefix} $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!"
715           body: |
716             $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
717
718             Please refer to the logs server URL for console logs when possible
719             and use the Jenkins Build URL as a last resort.
720
721             Jenkins Build URL:
722             $BUILD_URL
723           unstable: true
724           fixed: true
725           send-to:
726             - recipients
727
728 #######
729 # SCM #
730 #######
731
732 - scm:
733     name: lf-infra-gerrit-scm
734     scm:
735       - git:
736           credentials-id: "{jenkins-ssh-credential}"
737           url: "{git-url}"
738           refspec: "{refspec}"
739           branches:
740             - "refs/heads/{branch}"
741           skip-tag: true
742           wipe-workspace: true
743           submodule:
744             disable: "{submodule-disable}"
745             recursive: "{submodule-recursive}"
746             timeout: "{submodule-timeout}"
747           choosing-strategy: "{choosing-strategy}"
748
749 - scm:
750     name: lf-infra-github-scm
751     scm:
752       - git:
753           credentials-id: "{jenkins-ssh-credential}"
754           url: "{url}"
755           refspec: "{refspec}"
756           branches:
757             - "{branch}"
758           skip-tag: true
759           wipe-workspace: true
760           submodule:
761             disable: "{submodule-disable}"
762             recursive: "{submodule-recursive}"
763             timeout: "{submodule-timeout}"
764           choosing-strategy: "{choosing-strategy}"
765
766 ############
767 # WRAPPERS #
768 ############
769
770 - wrapper:
771     name: lf-infra-wrappers-common
772     wrappers:
773       - mask-passwords
774       - timeout:
775           type: absolute
776           timeout: "{build-timeout}"
777           timeout-var: "BUILD_TIMEOUT"
778           fail: true
779       - timestamps
780       - openstack:
781           single-use: true
782
783 - wrapper:
784     name: lf-infra-wrappers
785     wrappers:
786       - lf-infra-wrappers-common:
787           build-timeout: "{build-timeout}"
788       - config-file-provider:
789           files:
790             - file-id: npmrc
791               target: "$HOME/.npmrc"
792             - file-id: pipconf
793               target: "$HOME/.config/pip/pip.conf"
794       - ssh-agent-credentials:
795           users:
796             - "{jenkins-ssh-credential}"
797
798 - wrapper:
799     name: lf-infra-wrappers-windows
800     wrappers:
801       - lf-infra-wrappers-common:
802           build-timeout: "{build-timeout}"