summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
c204c13)
Optionally run a script before and/or after maven goals.
This will help add dependencies and post process builds with more
flexibility to the project's needs.
Issue: IT-23957
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Change-Id: I7075972c796a2cac17d9ad7ec9e99be1699354c3
: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`.
: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.
: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)
: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``.
: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.
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
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
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}"
- lf-maven-build:
mvn-goals: "{mvn-goals}"
+ - shell: "{post-build-script}"
- lf-maven-deploy
- lf-provide-maven-settings-cleanup
- lf-maven-deploy
- lf-provide-maven-settings-cleanup
mvn-opts: ""
mvn-params: "-Dstream=$STREAM -Dmaven.source.skip=true"
mvn-version: mvn35
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
stream: master
submodule-recursive: true
submodule-timeout: 10
- lf-provide-maven-settings:
global-settings-file: "{mvn-global-settings}"
settings-file: "{mvn-settings}"
- 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}"
- lf-maven-build:
mvn-goals: "{mvn-goals}"
+ - shell: "{post-build-script}"
- lf-provide-maven-settings-cleanup
publishers:
- lf-provide-maven-settings-cleanup
publishers:
--- /dev/null
+---
+fixes:
+ - |
+ Optionally run a script before and/or after maven goals.
+ This will help add dependencies and post process builds with more
+ flexibility to the project's needs.