2020-07-29 19:51:27 +02:00
|
|
|
metadata:
|
|
|
|
name: mavenExecuteIntegration
|
|
|
|
aliases:
|
|
|
|
- name: mavenExecute
|
|
|
|
deprecated: false
|
|
|
|
description: "This step will execute backend integration tests via the Jacoco Maven-plugin."
|
|
|
|
longDescription: |
|
|
|
|
If the project contains a Maven module named "integration-tests", this step will execute
|
|
|
|
the integration tests via the Jacoco Maven-plugin.
|
|
|
|
spec:
|
|
|
|
inputs:
|
|
|
|
params:
|
|
|
|
- name: retry
|
|
|
|
type: int
|
2020-08-31 16:10:28 +02:00
|
|
|
description:
|
|
|
|
"The number of times that integration tests will be retried before failing the step.
|
2020-07-29 19:51:27 +02:00
|
|
|
Note: This will consume more time for the step execution."
|
|
|
|
scope:
|
|
|
|
- PARAMETERS
|
|
|
|
- STEPS
|
|
|
|
- STAGES
|
|
|
|
default: 1
|
|
|
|
- name: forkCount
|
|
|
|
type: string
|
2020-08-31 16:10:28 +02:00
|
|
|
description:
|
|
|
|
"The number of JVM processes that are spawned to run the tests in parallel in case of
|
2020-07-29 19:51:27 +02:00
|
|
|
using a maven based project structure.
|
|
|
|
For more details visit the Surefire documentation at
|
|
|
|
https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#forkCount."
|
|
|
|
scope:
|
|
|
|
- PARAMETERS
|
|
|
|
- STEPS
|
|
|
|
- STAGES
|
|
|
|
default: "1C"
|
2021-06-22 12:51:47 +02:00
|
|
|
- name: goal
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
"The name of the Maven goal to execute."
|
|
|
|
scope:
|
|
|
|
- STEPS
|
|
|
|
- STAGES
|
|
|
|
- PARAMETERS
|
|
|
|
default: "test"
|
2020-10-15 09:38:10 +02:00
|
|
|
- name: installArtifacts
|
|
|
|
type: bool
|
|
|
|
description:
|
|
|
|
"If enabled, it will install all artifacts to the local maven repository to make them available before running the tests.
|
|
|
|
This is required if the integration test module has dependencies to other modules in the repository and they were not installed before."
|
|
|
|
scope:
|
|
|
|
- GENERAL
|
|
|
|
- STEPS
|
|
|
|
- STAGES
|
|
|
|
- PARAMETERS
|
2020-11-13 14:01:02 +02:00
|
|
|
default: true
|
2020-07-29 19:51:27 +02:00
|
|
|
# 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
|
2022-01-20 09:18:57 +02:00
|
|
|
outputs:
|
|
|
|
resources:
|
|
|
|
- name: reports
|
|
|
|
type: reports
|
|
|
|
params:
|
|
|
|
- filePattern: "**/requirement.mapping"
|
|
|
|
type: requirement-mapping
|
|
|
|
- filePattern: "**/TEST-*.xml"
|
|
|
|
type: junit
|
|
|
|
- filePattern: "**/integration-test/*.xml"
|
|
|
|
type: integration-test
|
|
|
|
- filePattern: "**/jacoco.xml"
|
|
|
|
type: jacoco-coverage
|
2020-07-29 19:51:27 +02:00
|
|
|
containers:
|
|
|
|
- name: mvn
|
|
|
|
image: maven:3.6-jdk-8
|
|
|
|
|
|
|
|
# This declaration is necessary in order to return any sidecar configuration in the context config.
|
|
|
|
sidecars:
|
2020-08-31 16:10:28 +02:00
|
|
|
- name: ""
|