You've already forked sap-jenkins-library
mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-12-01 23:02:43 +02:00
1.7 KiB
1.7 KiB
mavenExecute
Description
Executes a maven command inside a Docker container.
Parameters
| parameter | mandatory | default | example values |
|---|---|---|---|
dockerImage |
no | 'maven:3.5-jdk-7' | |
globalSettingsFile |
no | 'local_folder/settings.xml' | |
projectSettingsFile |
no | ||
pomPath |
no | 'local_folder/m2' | |
flags |
no | '-o' | |
goals |
no | 'clean install' | |
m2Path |
no | 'local_folder/m2' | |
defines |
no | '-Dmaven.tests.skip=true' |
dockerImageName of the docker image that should be used.globalSettingsFilePath or url to the mvn settings file that should be used as global settings file.projectSettingsFilePath or url to the mvn settings file that should be used as project settings file.pomPathPath to the pom file that should be used.flagsFlags to provide when running mvn.goalsMaven goals that should be executed.m2PathPath to the location of the local repository that should be used.definesAdditional properties.
Global Configuration
The following parameters can also be specified using the global configuration file:
dockerImageglobalSettingsFileprojectSettingsFilepomPathm2Path
Exceptions
None
Example
mavenExecute script: this, goals: 'clean install'