mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
9812391145
Without this change the default setting from dockerExecute and dockerExecuteOnKubernetes are overruled. With this change the user has to explicitly configure a step if they want this behaviour. Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
81 lines
2.4 KiB
YAML
81 lines
2.4 KiB
YAML
metadata:
|
|
name: mavenBuild
|
|
aliases:
|
|
- name: mavenExecute
|
|
deprecated: false
|
|
description: This step will install the maven project into the local maven repository.
|
|
longDescription: |
|
|
This step will install the maven project into the local maven repository.
|
|
It will also prepare jacoco to record the code coverage and
|
|
supports ci friendly versioning by flattening the pom before installing.
|
|
spec:
|
|
inputs:
|
|
params:
|
|
- name: pomPath
|
|
type: string
|
|
description: Path to the pom file which should be installed including all children.
|
|
scope:
|
|
- PARAMETERS
|
|
- STEPS
|
|
mandatory: false
|
|
default: pom.xml
|
|
- name: flatten
|
|
type: bool
|
|
description: Defines if the pom files should be flattened to support ci friendly maven versioning.
|
|
scope:
|
|
- PARAMETERS
|
|
default: true
|
|
- name: verify
|
|
type: bool
|
|
description: Instead of installing the artifact only the verify lifecycle phase is executed.
|
|
scope:
|
|
- PARAMETERS
|
|
default: false
|
|
|
|
# Global maven settings, should be added to all maven steps
|
|
- name: projectSettingsFile
|
|
type: string
|
|
description: Path to the mvn settings file that should be used as project settings file.
|
|
scope:
|
|
- GENERAL
|
|
- STEPS
|
|
- STAGES
|
|
- PARAMETERS
|
|
aliases:
|
|
- name: maven/projectSettingsFile
|
|
- name: globalSettingsFile
|
|
type: string
|
|
description: Path to the mvn settings file that should be used as global settings file.
|
|
scope:
|
|
- GENERAL
|
|
- STEPS
|
|
- STAGES
|
|
- PARAMETERS
|
|
aliases:
|
|
- name: maven/globalSettingsFile
|
|
- name: m2Path
|
|
type: string
|
|
description: Path to the location of the local repository that should be used.
|
|
scope:
|
|
- GENERAL
|
|
- STEPS
|
|
- STAGES
|
|
- PARAMETERS
|
|
aliases:
|
|
- name: maven/m2Path
|
|
- name: logSuccessfulMavenTransfers
|
|
type: bool
|
|
description: Configures maven to log successful downloads. This is set to `false` by default to reduce the noise in build logs.
|
|
scope:
|
|
- GENERAL
|
|
- STEPS
|
|
- STAGES
|
|
- PARAMETERS
|
|
default: false
|
|
aliases:
|
|
- name: maven/logSuccessfulMavenTransfers
|
|
|
|
containers:
|
|
- name: mvn
|
|
image: maven:3.6-jdk-8
|