X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=docs%2Fjjb%2Flf-macros.rst;h=72d898c6e1cd002e65c3fb51aab993dadeb51dd5;hb=0b1d0ba4945b93dc5d86fffef20f4be44fc5a2f9;hp=d6e5f1432ea1e78516fe1320d072a98ec7269925;hpb=2069fa3b9c656c59fc93c77bf0ba80a18c0ddc00;p=releng%2Fglobal-jjb.git diff --git a/docs/jjb/lf-macros.rst b/docs/jjb/lf-macros.rst index d6e5f143..72d898c6 100644 --- a/docs/jjb/lf-macros.rst +++ b/docs/jjb/lf-macros.rst @@ -118,7 +118,7 @@ Call pip install to install packages into a virtualenv located in .. note:: The first package listed in PIP_PACKAGES is used as the VENV name. -.. _lf-provide-maven-settings +.. _lf-provide-maven-settings: lf-provide-maven-settings ------------------------- @@ -207,6 +207,10 @@ lf-infra-github-scm Basic SCM configuration for GitHub based projects. +On the `branch` variable you can assign `$sha1` or `$ghprbActualCommit` +as the value. This will require that the job be triggered via +the GHPRB plugin and not manually. + Triggers ======== @@ -223,3 +227,15 @@ lf-infra-wrappers Provides lf-infra recommended wrappers which should be used in every job-template. + +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/