8 .. include:: ../job-groups.rst
10 Below is a list of Maven job groups:
12 .. literalinclude:: ../../jjb/lf-maven-job-groups.yaml
22 Runs Sonar against a Maven project.
26 :java-version: Version of Java to execute Sonar with. (default: openjdk11)
27 :mvn-version: Version of Maven to execute Sonar with.
28 :mvn-settings: Maven settings.xml file containing credentials to use.
30 lf-infra-maven-sonarcloud
31 -------------------------
33 Runs Sonar against a Maven project and pushes results to SonarCloud.
37 :java-version: Version of Java to execute Maven build. (default: openjdk11)
38 :mvn-version: Version of Maven to execute Sonar with.
39 :mvn-settings: Maven settings.xml file containing credentials to use.
40 :sonarcloud-project-key: SonarCloud project key.
41 :sonarcloud-project-organization: SonarCloud project organization.
42 :sonarcloud-api-token: SonarCloud API Token.
43 :sonarcloud-java-version: Version of Java to run the Sonar scan. (default: openjdk11)
44 :sonarcloud-qualitygate-wait: SonarCloud flag that forces the analysis step to
45 wait for the quality gate result. (default: false)
50 Calls the maven build script to perform a maven build.
54 :mvn-goals: The maven goals to perform for the build.
55 (default: clean deploy)
60 Common Jenkins configuration for Maven jobs.
65 Calls the maven deploy script to push artifacts to Nexus.
67 lf-maven-versions-plugin
68 ------------------------
70 Conditionally calls Maven versions plugin to set, update and commit the maven `versions:set`.
74 :maven-versions-plugin: Whether to call Maven versions plugin or not. (default: false)
75 :version-properties-file: Name and path of the version properties file.
76 (default: version.properties)
77 :mvn-version: Version of Maven to execute Sonar with.
78 :mvn-pom: Location of pom.xml.
79 :mvn-settings: Maven settings.xml file containing credentials to use.
84 Calls the maven stage script to push artifacts to a Nexus staging repository.
88 :mvn-global-settings: The name of the Maven global settings to use for
90 :mvn-settings: The name of settings file containing credentials for the project.
92 lf-update-java-alternatives
93 ---------------------------
95 Setup Java alternatives for the Distro.
99 :java-version: Version of Java to set as the default Java.
102 lf-infra-sonatype-clm
103 ---------------------
105 Runs a Sonatype CLM scan against a Maven project and pushes results to
108 :Optional parameters:
109 :mvn-goals: The maven goals to perform for the build.
110 (default: clean install)
112 lf-infra-maven-sbom-generator
113 -----------------------------
115 Runs a specific version of SPDX SBOM Generator tool to generate a report.
116 The calling job template sets the version to run in the SBOM_GENERATOR_VERSION parameter.
118 :Optional parameters:
119 :sbom-flags: SBOM generator options. See https://github.com/opensbom-generator/spdx-sbom-generator
127 Produces a CLM scan of the code into Nexus IQ Server.
131 - {project-name}-maven-clm-{stream}
135 :Comment Trigger: run-clm
137 :Required parameters:
139 :build-node: The node to run build on.
140 :jenkins-ssh-credential: Credential to use for SSH. (Generally configured in defaults.yaml)
141 :mvn-settings: The name of settings file containing credentials for the project.
143 :Optional parameters:
145 :branch: The branch to build against. (default: master)
146 :build-days-to-keep: Days to keep build logs in Jenkins. (default: 7)
147 :build-timeout: Timeout in minutes before aborting build. (default: 60)
148 :git-url: URL clone project from. (default: $GIT_URL/$PROJECT)
149 :java-version: Version of Java to use for the build. (default: openjdk11)
150 :mvn-global-settings: The name of the Maven global settings to use for
151 Maven configuration. (default: global-settings)
152 :mvn-goals: The maven goals to perform for the build.
153 (default: clean install)
154 :mvn-opts: Sets MAVEN_OPTS to start up the JVM running Maven. (default: '')
155 :mvn-params: Parameters to pass to the mvn CLI. (default: '')
156 :mvn-version: Version of maven to use. (default: mvn35)
157 :nexus-iq-namespace: Insert a namespace to project AppID for projects that
158 share a Nexus IQ system to avoid project name collision. We recommend
159 inserting a trailing - dash if using this parameter.
160 For example 'odl-'. (default: '')
161 :nexus-iq-stage: Sets the **stage** which the policy evaluation will run
162 against on the Nexus IQ Server. (default: 'build')
163 :stream: Keyword that represents a release code-name.
164 Often the same as the branch. (default: master)
165 :submodule-recursive: Whether to checkout submodules recursively.
167 :submodule-timeout: Timeout (in minutes) for checkout operation.
169 :submodule-disable: Disable submodule checkout operation.
172 :gerrit_merge_triggers: Override Gerrit Triggers.
174 Maven JavaDoc Publish
175 ---------------------
177 Produces and publishes javadocs for a Maven project.
179 Expects javadocs to be available in ``$WORKSPACE/target/site/apidocs``, but
180 overrideable with the ``mvn-dir`` parameter. If set, will search for javadocs
181 in ``$WORKSPACE/{mvn-dir}/target/site/apidocs``.
185 - {project-name}-maven-javadoc-publish-{stream}-{java-version}
186 - gerrit-maven-javadoc-publish
187 - github-maven-javadoc-publish
189 :Comment Trigger: remerge
191 :Required parameters:
193 :build-node: The node to run build on.
194 :javadoc-path: The path in Nexus to deploy javadoc to.
195 :jenkins-ssh-credential: Credential to use for SSH. (Generally configured in defaults.yaml)
196 :mvn-settings: The name of settings file containing credentials for the project.
197 :mvn-site-id: Maven Server ID from settings.xml to pull credentials from.
198 (Note: This setting is generally configured in ``defaults.yaml``.)
200 :Optional parameters:
202 :branch: The branch to build against. (default: master)
203 :build-days-to-keep: Days to keep build logs in Jenkins. (default: 7)
204 :build-timeout: Timeout in minutes before aborting build. (default: 60)
205 :git-url: URL clone project from. (default: $GIT_URL/$PROJECT)
206 :java-version: Version of Java to use for the build. (default: openjdk11)
207 :mvn-dir: Directory supplied as argument to -f option (default: '.')
208 :mvn-global-settings: The name of the Maven global settings to use for
209 Maven configuration. (default: global-settings)
210 :mvn-opts: Sets MAVEN_OPTS to start up the JVM running Maven. (default: '')
211 :mvn-params: Parameters to pass to the mvn CLI. (default: '')
212 Must not include a "-f" option; see parameter mvn-dir.
213 :mvn-version: Version of maven to use. (default: mvn35)
214 :stream: Keyword that represents a release code-name.
215 Often the same as the branch. (default: master)
216 :submodule-recursive: Whether to checkout submodules recursively.
218 :submodule-timeout: Timeout (in minutes) for checkout operation.
220 :submodule-disable: Disable submodule checkout operation.
223 :gerrit_merge_triggers: Override Gerrit Triggers.
228 Produces javadocs for a Maven project.
230 Expects javadocs to be available in ``$WORKSPACE/target/site/apidocs``, but
231 overrideable with the ``mvn-dir`` parameter. If set, will search for javadocs
232 in ``$WORKSPACE/{mvn-dir}/target/site/apidocs``.
236 - {project-name}-maven-javadoc-verify-{stream}-{java-version}
237 - gerrit-maven-javadoc-verify
238 - github-maven-javadoc-verify
240 :Comment Trigger: recheck|reverify
242 :Required parameters:
243 :build-node: The node to run build on.
244 :jenkins-ssh-credential: Credential to use for SSH. (Generally configured in defaults.yaml)
245 :mvn-settings: The name of settings file containing credentials for the project.
247 :Optional parameters:
249 :branch: The branch to build against. (default: master)
250 :build-days-to-keep: Days to keep build logs in Jenkins. (default: 7)
251 :build-timeout: Timeout in minutes before aborting build. (default: 60)
252 :deploy-path: The path in Nexus to deploy javadoc to. (default: $PROJECT/$STREAM)
253 :git-url: URL clone project from. (default: $GIT_URL/$PROJECT)
254 :java-version: Version of Java to use for the build. (default: openjdk11)
255 :mvn-dir: Directory supplied as argument to -f option (default: '.')
256 :mvn-global-settings: The name of the Maven global settings to use for
257 Maven configuration. (default: global-settings)
258 :mvn-opts: Sets MAVEN_OPTS to start up the JVM running Maven. (default: '')
259 :mvn-params: Parameters to pass to the mvn CLI. (default: '')
260 Must not include a "-f" option; see parameter mvn-dir.
261 :mvn-version: Version of maven to use. (default: mvn35)
262 :stream: Keyword that represents a release code-name.
263 Often the same as the branch. (default: master)
264 :submodule-recursive: Whether to checkout submodules recursively.
266 :submodule-timeout: Timeout (in minutes) for checkout operation.
268 :submodule-disable: Disable submodule checkout operation.
271 :gerrit_verify_triggers: Override Gerrit Triggers.
276 Merge job which runs `mvn clean deploy` to build a project.
278 This job pushes files to Nexus using cURL instead of allowing the Maven deploy
279 goal to push the upload. This is to get around the issue that Maven deploy does
280 not properly support uploading files at the end of the build and instead pushes
281 as it goes. There exists a ``-Ddeploy-at-end`` feature but it does not work
284 This job uses the following strategy to deploy jobs to Nexus:
286 1. ``wget -r`` to fetch maven-metadata.xml from Nexus
287 2. ``mvn deploy -DaltDeploymentRepository`` to prepare files for upload
288 3. Removes untouched maven-metadata.xml files before upload
289 4. Use lftools (cURL) upload script to push artifacts to Nexus
293 - {project-name}-maven-merge-{stream}
297 :Comment Trigger: remerge
299 :Required parameters:
301 :build-node: The node to run build on.
302 :jenkins-ssh-credential: Credential to use for SSH. (Generally configured in defaults.yaml)
303 :mvn-settings: The name of settings file containing credentials for the project.
304 :mvn-snapshot-id: Maven Server ID from settings.xml to pull credentials from.
305 (Note: This setting is generally configured in ``defaults.yaml``.)
306 :nexus-snapshot-repo: The repository id of the Nexus snapshot repo to deploy to.
308 :Optional parameters:
310 :branch: Git branch to fetch for the build. (default: master)
311 :build-days-to-keep: Days to keep build logs in Jenkins. (default: 7)
312 :build-timeout: Timeout in minutes before aborting build. (default: 60)
313 :cron: Cron schedule when to trigger the job. This parameter also
314 supports multiline input via YAML pipe | character in cases where
315 one may want to provide more than 1 cron timer. (default: 'H H * * 0'
317 :git-url: URL clone project from. (default: $GIT_URL/$PROJECT)
318 :java-version: Version of Java to use for the build. (default: openjdk11)
319 :mvn-global-settings: The name of the Maven global settings to use for
320 Maven configuration. (default: global-settings)
321 :mvn-opts: Sets MAVEN_OPTS to start up the JVM running Maven. (default: '')
322 :mvn-params: Parameters to pass to the mvn CLI. (default: '')
323 :mvn-version: Version of maven to use. (default: mvn35)
324 :nexus-cut-dirs: Number of directories to cut from file path for `wget -r`.
325 :stream: Keyword that represents a release code-name.
326 Often the same as the branch. (default: master)
327 :submodule-recursive: Whether to checkout submodules recursively.
329 :submodule-timeout: Timeout (in minutes) for checkout operation.
331 :submodule-disable: Disable submodule checkout operation.
334 :gerrit_merge_triggers: Override Gerrit Triggers.
335 :gerrit_trigger_file_paths: Override file paths to filter which file
336 modifications will trigger a build.
338 Maven Merge for Docker
339 ----------------------
341 Produces a snapshot docker image in a Nexus registry. Appropriate for
342 Java projects that do not need to deploy any POM or JAR files.
344 Like the Maven Merge job as described above but logs in to Docker
345 registries first and skips the lf-maven-deploy builder. The project
346 POM file should invoke a plugin to build and push a Docker image.
347 This pulls the base image from the registry in the environment
348 variable ``CONTAINER_PULL_REGISTRY`` and pushes new image into the
349 registry in the environment variable ``CONTAINER_PUSH_REGISTRY``.
353 - {project-name}-maven-docker-merge-{stream}
354 - gerrit-maven-docker-merge
355 - github-maven-docker-merge
357 :Required parameters:
359 :container-public-registry: Docker registry source with base images.
360 :container-snapshot-registry: Docker registry target for the deploy action.
362 All other required and optional parameters are identical to the Maven Merge job
368 Produces a release candidate by creating a staging repo in Nexus.
370 The staging repo name is in the format PROJECT-NUMBER for example "aaa-1234",
371 "autorelease-2000", "odlparent-1201", etc...
373 This job runs a Maven build and deploys to $WORKSPACE/m2repo directory. This
374 directory is then used later to deploy to Nexus.
378 - {project-name}-maven-stage-{stream}
382 :Comment Trigger: "stage-release" or "stage-maven-release"
384 :Required parameters:
386 :build-node: The node to run build on.
387 :jenkins-ssh-credential: Credential to use for SSH. (Generally configured in defaults.yaml)
388 :mvn-settings: The name of settings file containing credentials for the project.
389 :mvn-staging-id: Maven Server ID from settings.xml to pull credentials from.
390 (Note: This setting is generally configured in ``defaults.yaml``.)
391 :staging-profile-id: Profile ID of the project's Nexus staging profile.
393 :Optional parameters:
395 :archive-artifacts: Artifacts to archive to the logs server (default: '').
396 :branch: The branch to build against. (default: master)
397 :build-days-to-keep: Days to keep build logs in Jenkins. (default: 7)
398 :build-timeout: Timeout in minutes before aborting build. (default: 60)
399 :cron: Cron schedule when to trigger the job. This parameter also
400 supports multiline input via YAML pipe | character in cases where
401 one may want to provide more than 1 cron timer. (default: '')
402 :deploy-path: The path in Nexus to deploy javadoc to. (default: $PROJECT/$STREAM)
403 :git-url: URL clone project from. (default: $GIT_URL/$PROJECT)
404 :java-version: Version of Java to use for the build. (default: openjdk11)
405 :mvn-central: Set to ``true`` to also stage to **OSSRH**. This is for projects
406 that want to release to Maven Central. If set, then also set the parameter
407 ``ossrh-profile-id``. (default: false)
408 :maven-versions-plugin: Whether to call Maven versions plugin or not. (default: false)
409 :mvn-global-settings: The name of the Maven global settings to use for
410 Maven configuration. (default: global-settings)
411 :mvn-opts: Sets MAVEN_OPTS to start up the JVM running Maven. (default: '')
412 :mvn-params: Parameters to pass to the mvn CLI. (default: '')
413 :mvn-version: Version of maven to use. (default: mvn35)
414 :ossrh-profile-id: Profile ID for project as provided by OSSRH.
416 :sbom-flags: SBOM generator options if using sbom-generator.
417 See https://github.com/opensbom-generator/spdx-sbom-generator
418 :sbom-generator: Calls lf-infra-maven-sbom-generator to run the SPDX SBOM generator tool.
420 :sbom-generator-version: SBOM generator version to download and run if using sbom-generator.
422 :sbom-path: Path where SBOM is going to be executed from.
423 (default: $WORKSPACE)
424 :sign-artifacts: Sign artifacts with Sigul. (default: false)
425 :stream: Keyword that represents a release code-name.
426 Often the same as the branch. (default: master)
427 :submodule-recursive: Whether to checkout submodules recursively.
429 :submodule-timeout: Timeout (in minutes) for checkout operation.
431 :submodule-disable: Disable submodule checkout operation.
433 :version-properties-file: Name and path of the version properties file.
434 (default: version.properties)
436 :gerrit_release_triggers: Override Gerrit Triggers.
437 :gerrit_trigger_file_paths: Override file paths to filter which file
438 modifications will trigger a build.
440 Maven Stage for Docker
441 ----------------------
443 Produces a release candidate docker image in a Nexus registry.
444 Appropriate for Java projects that do not need to deploy any POM or
447 Like the Maven Stage job as described above but logs in to Docker
448 registries first and skips the lf-maven-deploy builder. The project
449 POM file should invoke a plugin to build and push a Docker image.
450 This pulls the base image from the registry in the environment
451 variable ``CONTAINER_PULL_REGISTRY`` and pushes new image into the
452 registry in the environment variable ``CONTAINER_PUSH_REGISTRY``.
456 - {project-name}-maven-docker-stage-{stream}
457 - gerrit-maven-docker-stage
458 - github-maven-docker-stage
460 :Comment Trigger: "stage-release" or "stage-docker-release"
462 :Required parameters:
464 :container-public-registry: Docker registry source with base images.
465 :container-staging-registry: Docker registry target for the deploy action.
467 :Optional parameters:
469 :gerrit_release_docker_triggers: Override Gerrit Triggers.
471 All other required and optional parameters are identical to the Maven Stage job
479 Sonar job which runs mvn clean install then publishes to Sonar.
481 This job purposely runs on the ``master`` branch and does not support
482 multi-branch configuration.
486 - {project-name}-sonar
489 - {project-name}-sonar-prescan-script
490 - gerrit-maven-sonar-prescan-script
491 - github-maven-sonar-prescan-script
493 :Comment Trigger: run-sonar
495 :Required parameters:
497 :build-node: The node to run build on.
498 :jenkins-ssh-credential: Credential to use for SSH. (Generally configured in defaults.yaml)
499 :mvn-settings: The name of settings file containing credentials for the project.
500 :sonar-prescan-script: (maven-sonar-prescan-script jobs) A shell script to run before
503 :Optional parameters:
505 :build-days-to-keep: Days to keep build logs in Jenkins. (default: 7)
506 :build-timeout: Timeout in minutes before aborting build. (default: 60)
507 :cron: Cron schedule when to trigger the job. This parameter also
508 supports multiline input via YAML pipe | character in cases where
509 one may want to provide more than 1 cron timer. (default: 'H H * * 6'
511 :git-url: URL clone project from. (default: $GIT_URL/$PROJECT)
512 :java-version: Version of Java to use for the Maven build. (default: openjdk11)
513 :mvn-global-settings: The name of the Maven global settings to use for
514 Maven configuration. (default: global-settings)
515 :mvn-goals: The maven goals to perform for the build.
516 (default: clean install)
517 :mvn-opts: Sets MAVEN_OPTS to start up the JVM running Maven. (default: '')
518 :mvn-params: Parameters to pass to the mvn CLI. (default: '')
519 :mvn-version: Version of maven to use. (default: mvn35)
520 :sonar-mvn-goals: Maven goals to run for sonar analysis.
521 (default: sonar:sonar)
522 :sonarcloud: Set to ``true`` to use SonarCloud ``true|false``.
524 :sonarcloud-project-key: SonarCloud project key. (default: '')
525 :sonarcloud-project-organization: SonarCloud project organization.
527 :sonarcloud-api-token: SonarCloud API Token. (default: '')
528 :sonarcloud-java-version: Version of Java to use for the Sonar scan. (default: openjdk11)
529 :stream: Keyword that represents a release code-name.
530 Often the same as the branch. (default: master)
531 :submodule-recursive: Whether to checkout submodules recursively.
533 :submodule-timeout: Timeout (in minutes) for checkout operation.
535 :submodule-disable: Disable submodule checkout operation.
537 :scan-dev-branch: Run the scan on a developer branch.
540 :gerrit_sonar_triggers: Override Gerrit Triggers.
545 .. literalinclude:: ../../.jjb-test/lf-maven-jobs/maven-sonarcloud.yaml
551 Sonar job which runs mvn clean install then publishes to Sonar.
553 This job runs on dev branches and its triggered on new patchsets.
557 - {project-name}-sonar-verify
558 - gerrit-maven-sonar-verify
560 :Comment Trigger: recheck|reverify
562 :Required parameters:
564 :build-node: The node to run build on.
565 :jenkins-ssh-credential: Credential to use for SSH. (Generally configured in defaults.yaml)
566 :mvn-settings: The name of settings file containing credentials for the project.
568 :Optional parameters:
570 :build-days-to-keep: Days to keep build logs in Jenkins. (default: 7)
571 :build-timeout: Timeout in minutes before aborting build. (default: 60)
572 :git-url: URL clone project from. (default: $GIT_URL/$PROJECT)
573 :java-version: Version of Java to use for the Maven build. (default: openjdk11)
574 :mvn-global-settings: The name of the Maven global settings to use for
575 Maven configuration. (default: global-settings)
576 :mvn-goals: The maven goals to perform for the build.
577 (default: clean install)
578 :mvn-opts: Sets MAVEN_OPTS to start up the JVM running Maven. (default: '')
579 :mvn-params: Parameters to pass to the mvn CLI. (default: '')
580 :mvn-version: Version of maven to use. (default: mvn35)
581 :sonar-mvn-goal: Maven goals to run for sonar analysis.
582 (default: sonar:sonar)
583 :sonarcloud: Set to ``true`` to use SonarCloud ``true|false``.
585 :sonarcloud-project-key: SonarCloud project key. (default: '')
586 :sonarcloud-project-organization: SonarCloud project organization.
588 :sonarcloud-api-token: SonarCloud API Token. (default: '')
589 :sonarcloud-java-version: Version of Java to use for the Sonar scan. (default: openjdk11)
590 :sonarcloud-qualitygate-wait: SonarCloud flag that forces the analysis step to
591 wait for the quality gate result. (default: false)
592 :stream: Keyword that represents a release code-name.
593 Often the same as the branch. (default: master)
594 :submodule-recursive: Whether to checkout submodules recursively.
596 :submodule-timeout: Timeout (in minutes) for checkout operation.
598 :submodule-disable: Disable submodule checkout operation.
600 :scan-dev-branch: Run the scan on a developer branch.
603 :gerrit_sonar_triggers: Override Gerrit Triggers.
608 .. literalinclude:: ../../.jjb-test/lf-maven-jobs/maven-sonarcloud.yaml
614 Verify job which runs mvn clean install to test a project build..
618 - {project-name}-maven-verify-{stream}-{mvn-version}-{java-version}
619 - gerrit-maven-verify
620 - github-maven-verify
622 :Comment Trigger: recheck|reverify
624 :Required parameters:
626 :build-node: The node to run build on.
627 :jenkins-ssh-credential: Credential to use for SSH. (Generally configured in defaults.yaml)
628 :mvn-settings: The name of settings file containing credentials for the project.
630 :Optional parameters:
632 :branch: Git branch to fetch for the build. (default: master)
633 :build-days-to-keep: Days to keep build logs in Jenkins. (default: 7)
634 :build-timeout: Timeout in minutes before aborting build. (default: 60)
635 :git-url: URL clone project from. (default: $GIT_URL/$PROJECT)
636 :java-version: Version of Java to use for the build. (default: openjdk11)
637 :mvn-global-settings: The name of the Maven global settings to use for
638 Maven configuration. (default: global-settings)
639 :mvn-opts: Sets MAVEN_OPTS to start up the JVM running Maven. (default: '')
640 :mvn-params: Parameters to pass to the mvn CLI. (default: '')
641 :mvn-version: Version of maven to use. (default: mvn35)
642 :stream: Keyword that represents a release code-name.
643 Often the same as the branch. (default: master)
644 :submodule-recursive: Whether to checkout submodules recursively.
646 :submodule-timeout: Timeout (in minutes) for checkout operation.
648 :submodule-disable: Disable submodule checkout operation.
651 :gerrit_verify_triggers: Override Gerrit Triggers.
652 :gerrit_trigger_file_paths: Override file paths to filter which file
653 modifications will trigger a build.
655 Maven Verify for Docker
656 -----------------------
658 Like the Maven Verify job as described above but logs in to Docker
659 registries first. The project POM file should invoke a plugin to build
660 a Docker image. This pulls the base image from the registry in the environment
661 variable ``CONTAINER_PULL_REGISTRY``.
665 - {project-name}-maven-docker-verify-{stream}-{mvn-version}-{java-version}
666 - gerrit-maven-docker-verify
667 - github-maven-docker-verify
669 :Required parameters:
671 :container-public-registry: Docker registry source with base images.
673 All other required and optional parameters are identical to the Maven Verify job
676 Maven Verify w/ Dependencies
677 ----------------------------
679 Verify job which runs mvn clean install to test a project build /w deps
681 This job's purpose is to verify a patch in conjunction to a list of upstream
682 patches it depends on. The user of this job can provide a list of patches via
687 - {project-name}-maven-verify-deps-{stream}-{mvn-version}-{java-version}
688 - gerrit-maven-verify-dependencies
690 :Comment Trigger: recheck: SPACE_SEPARATED_LIST_OF_PATCHES
692 :Required parameters:
694 :build-node: The node to run build on.
695 :jenkins-ssh-credential: Credential to use for SSH. (Generally configured in defaults.yaml)
696 :mvn-settings: The name of settings file containing credentials for the project.
698 :Optional parameters:
700 :branch: Git branch to fetch for the build. (default: master)
701 :build-days-to-keep: Days to keep build logs in Jenkins. (default: 7)
702 :build-timeout: Timeout in minutes before aborting build. (default: 60)
703 :git-url: URL clone project from. (default: $GIT_URL/$PROJECT)
704 :java-version: Version of Java to use for the build. (default: openjdk11)
705 :mvn-global-settings: The name of the Maven global settings to use for
706 Maven configuration. (default: global-settings)
707 :mvn-opts: Sets MAVEN_OPTS to start up the JVM running Maven. (default: '')
708 :mvn-params: Parameters to pass to the mvn CLI. (default: '')
709 :mvn-version: Version of maven to use. (default: mvn35)
710 :stream: Keyword that represents a release code-name.
711 Often the same as the branch. (default: master)
712 :submodule-recursive: Whether to checkout submodules recursively.
714 :submodule-timeout: Timeout (in minutes) for checkout operation.
716 :submodule-disable: Disable submodule checkout operation.
719 :gerrit_verify_triggers: Override Gerrit Triggers.
720 :gerrit_trigger_file_paths: Override file paths to filter which file
721 modifications will trigger a build.