:mvn-params: Parameters to pass to the mvn CLI. (default: '')
:mvn-version: Version of maven to use. (default: mvn35)
:nexus-cut-dirs: Number of directories to cut from file path for `wget -r`.
+ :pre-build-script: Shell script to run before maven build. (default: a string with a shell comment)
+ :post-build-script: Shell script to run after maven build. (default: a string with a shell comment)
:stream: Keyword that represents a release code-name.
Often the same as the branch. (default: master)
:submodule-recursive: Whether to checkout submodules recursively.
:mvn-opts: Sets MAVEN_OPTS to start up the JVM running Maven. (default: '')
:mvn-params: Parameters to pass to the mvn CLI. (default: '')
:mvn-version: Version of maven to use. (default: mvn35)
+ :pre-build-script: Shell script to run before maven build. (default: a string with a shell comment)
+ :post-build-script: Shell script to run after maven build. (default: a string with a shell comment)
:sonar-mvn-goal: Maven goals to run for sonar analysis.
(default: sonar:sonar)
:sonarcloud: Set to ``true`` to use SonarCloud ``true|false``.
mvn-params: "-Dmerge"
mvn-version: mvn35
nexus-cut-dirs: 6 # Number of dirs in the Nexus path to remove for wget -r.
+ pre-build-script: "# pre-build script goes here"
+ post-build-script: "# post-build script goes here"
stream: master
submodule-recursive: true
submodule-timeout: 10
NEXUS_CUT_DIRS={nexus-cut-dirs}
NEXUS_REPO={nexus-snapshot-repo}
- shell: !include-raw-escape: ../shell/maven-fetch-metadata.sh
+ - shell: "{pre-build-script}"
- lf-maven-build:
mvn-goals: "{mvn-goals}"
+ - shell: "{post-build-script}"
- lf-maven-deploy
- lf-provide-maven-settings-cleanup
mvn-opts: ""
mvn-params: "-Dstream=$STREAM -Dmaven.source.skip=true"
mvn-version: mvn35
+ pre-build-script: "# pre-build script goes here"
+ post-build-script: "# post-build script goes here"
stream: master
submodule-recursive: true
submodule-timeout: 10
- lf-provide-maven-settings:
global-settings-file: "{mvn-global-settings}"
settings-file: "{mvn-settings}"
+ - shell: "{pre-build-script}"
- lf-maven-build:
mvn-goals: "{mvn-goals}"
+ - shell: "{post-build-script}"
- lf-provide-maven-settings-cleanup
publishers: