Wrappers
========
+lf-infra-wrappers-common
+------------------------
+
+Provides lf-infra recommended wrappers which should be used in every
+job-template. It's meant to be used by more specific wrappers below.
+
lf-infra-wrappers
-----------------
Provides lf-infra recommended wrappers which should be used in every
-job-template.
+job-template that's run on Linux systems.
-This wrapper requires that a managed file called `npmrc` exists in the Jenkins. The main use
-case here is to point to a npm proxy, on Nexus for example.
-The type of the file should be "Custom file". You can set various npmrc settings in it.
-Documentation on npm configuration can be found at https://docs.npmjs.com/files/npmrc.
-If you are not using npm then it is fine for the file to be empty.
+This wrapper requires that a managed file called `npmrc` exists in the Jenkins.
+The main use case here is to point to a npm proxy, on Nexus for example.
+The type of the file should be "Custom file". You can set various npmrc
+settings in it. Documentation on npm configuration can be found at
+https://docs.npmjs.com/files/npmrc. If you are not using npm then it is fine
+for the file to be empty.
Example npmrc:
.. code-block:: bash
registry=https://nexus3.onap.org/repository/npm.public/
+
+lf-infra-wrappers-windows
+-------------------------
+
+Provides lf-infra recommended wrappers which should be used in every
+job-template that's run on Windows systems.
############
- wrapper:
- name: lf-infra-wrappers
+ name: lf-infra-wrappers-common
wrappers:
- mask-passwords
- timeout:
timeout-var: 'BUILD_TIMEOUT'
fail: true
- timestamps
- - ssh-agent-credentials:
- users:
- - '{jenkins-ssh-credential}'
- openstack:
single-use: true
+
+- wrapper:
+ name: lf-infra-wrappers
+ wrappers:
+ - lf-infra-wrappers-common:
+ build-timeout: '{build-timeout}'
- config-file-provider:
files:
- file-id: npmrc
target: '$HOME/.npmrc'
- file-id: pipconf
target: '$HOME/.config/pip/pip.conf'
+ - ssh-agent-credentials:
+ users:
+ - '{jenkins-ssh-credential}'
+
+- wrapper:
+ name: lf-infra-wrappers-windows
+ wrappers:
+ - lf-infra-wrappers-common:
+ build-timeout: '{build-timeout}'
--- /dev/null
+---
+features:
+ - |
+ Add lf-infra-wrappers-windows to handle Windows specific wrapper
+ configuration.
+ - |
+ Refactor lf-infra-wrappers to be for Linux systems and split out the
+ non-linux specific components into a new lf-infra-wrappers-common. This
+ change is seamless for current users of lf-infra-wrappers.