8 lf-fetch-dependent-patches
9 --------------------------
11 Fetch all patches provided via comment trigger
13 This macro will fetch all patches provided via comment trigger and will
14 create a list of projects from those patches via environment variable
15 called DEPENDENCY_BUILD_ORDER which can be used if necessary to build
16 projects in the specified order. The order is determined by first patch
17 instance for a project in the patch list.
22 Create a ~/.netrc file from a Maven settings.xml
26 :server-id: The id of a server as defined in settings.xml.
30 :ALT_NEXUS_SERVER: URL of custom nexus server.
31 If set this will take precedence.
32 Use this to point at nexus3.$PROJECTDOMAIN
35 lf-infra-deploy-maven-file
36 --------------------------
38 Deploy files to a repository.
42 :global-settings-file: Global settings file to use.
43 :group-id: Group ID of the repository.
44 :maven-repo-url: URL of a Maven repository to upload to.
45 :mvn-version: Version of Maven to use.
46 :repo-id: Repository ID
47 :settings-file: Maven settings file to use.
48 :upload-files-dir: Path to directory containing one or more files
53 Login into a custom hosted docker registry and / or docker.io
55 The Jenkins system should have the following global variables defined
57 :Environment variables:
59 :DOCKER_REGISTRY: The DNS address of the registry (IP or FQDN)
60 ex: nexus3.example.com (GLOBAL variable)
62 :REGISTRY_PORTS: Required if DOCKER_REGISTRY is set. Space separated list
63 of the registry ports to login to. ex: 10001 10002 10003 10004
66 :DOCKERHUB_EMAIL: If this variable is set then an attempt to login to
67 DockerHub (docker.io) will be also made. It should be set to the email
68 address for the credentials that will get looked up. Only _one_
69 credential will ever be found in the maven settings file for DockerHub.
72 lf-infra-gpg-verify-git-signature
73 ---------------------------------
75 Verify gpg signature of the latest commit message in $WORKSPACE.
76 This command assumes that $WORKSPACE is a git repo.
81 Run `packer build` to build system images.
83 lf-infra-packer-validate
84 ------------------------
86 Run `packer validate` to verify packer configuration.
90 :packer-cloud-settings: Cloud configuration file. Loaded on the build
91 server as CLOUDENV environment variable.
92 :packer-version: Version of packer to use.
94 lf-infra-push-gerrit-patch
95 --------------------------
97 Push a change through a Jenkins job to a Gerrit repository in an automated
100 :Required parameters:
102 :gerrit-commit-message: Commit message to assign.
103 :gerrit-host: Gerrit hostname.
104 :gerrit-topic: Gerrit topic.
105 :gerrit-user: Gerrit user-id used for submitting the change.
106 :reviewers-email: Reviewers email. Space-separated list of
107 email addresses to CC on the patch.
108 :project: Gerrit project name.
110 .. _lf-infra-ship-logs:
115 Gather and deploy logs to a log server.
120 Retrieves system stats.
122 lf-jacoco-nojava-workaround
123 ---------------------------
125 Workaround for Jenkins not able to find Java in JaCoCo runs.
130 Call maven-target builder with a goal of --version to force Jenkins to
131 install the need provided version of Maven. This is needed for any shell scripts
132 that want to use Maven.
134 :Required parameters:
136 :mvn-version: Version of Maven to install.
141 Call pip install to install packages into a virtualenv located in
144 .. note:: The first package listed in PIP_PACKAGES is used as the VENV name.
146 .. _lf-provide-maven-settings:
148 lf-provide-maven-settings
149 -------------------------
151 Push a global settings and user settings maven files to the build node.
153 lf-provide-maven-settings-cleanup
154 ---------------------------------
156 Cleanup maven settings.xml configuration. This should be called at the end of
157 any macros that calles the
158 :ref:`lf-provide-maven-settings <lf-provide-maven-settings>` macro.
163 Script to trigger a build on http://readthedocs.org
168 ReadTheDocs verify script.
170 lf-infra-provide-docker-cleanup
171 -------------------------------
173 Forcibly removes all of the docker images.
178 lf-infra-maven-parameters
179 -------------------------
181 Provides parameters needed by Maven. Should be used by any jobs that need to
187 Standard parameters used in the LF CI environments. Gerrit variables are
188 not used by GitHub projects, but defining them is not harmful. Should be used
189 in every job template.
191 lf-infra-node-parameters
192 ------------------------
194 Provides parameters needed by NodeJS and NPM. Should be used by any jobs that
195 need to run NodeJS or NPM.
197 lf-infra-tox-parameters
198 -----------------------
200 Provides parameters needed by python-tox. Should be used by any jobs that need
201 to run `tox <https://tox.readthedocs.io>`.
209 Configures the build-discarder plugin for Jenkins with the recommended lf-infra
210 settings. Should be used in all job-templates.
218 Provides basic configuration for the JaCoCo plugin.
223 Provides basic lf-infra recommended publisher configurations which should be
224 used in all job templates. This primary objective of this trigger is to
225 gather build logs and copy them to a log server.
233 Basic SCM configuration for Gerrit based projects.
238 Basic SCM configuration for GitHub based projects.
240 On the `branch` variable you can assign `$sha1` or `$ghprbActualCommit`
241 as the value. This will require that the job be triggered via
242 the GHPRB plugin and not manually.
250 Provides lf-infra recommended wrappers which should be used in every
253 This wrapper requires that a managed file called `npmrc` exists in the Jenkins. The main use
254 case here is to point to a npm proxy, on Nexus for example.
255 The type of the file should be "Custom file". You can set various npmrc settings in it.
256 Documentation on npm configuration can be found at https://docs.npmjs.com/files/npmrc.
257 If you are not using npm then it is fine for the file to be empty.
263 registry=https://nexus3.onap.org/repository/npm.public/