2020-03-20 19:20:52 +02:00
|
|
|
metadata:
|
|
|
|
name: nexusUpload
|
|
|
|
aliases:
|
|
|
|
- name: mavenExecute
|
|
|
|
deprecated: false
|
|
|
|
description: Upload artifacts to Nexus
|
|
|
|
longDescription: |
|
|
|
|
Upload build artifacts to a Nexus Repository Manager
|
|
|
|
spec:
|
|
|
|
inputs:
|
|
|
|
secrets:
|
|
|
|
- name: nexusCredentialsId
|
|
|
|
description: The technical username/password credential for accessing the nexus endpoint.
|
|
|
|
type: jenkins
|
2020-03-31 15:16:18 +02:00
|
|
|
aliases:
|
|
|
|
- name: nexus/credentialsId
|
2020-03-20 19:20:52 +02:00
|
|
|
params:
|
|
|
|
- name: version
|
|
|
|
type: string
|
|
|
|
description: The Nexus Repository Manager version. Currently supported are 'nexus2' and 'nexus3'.
|
|
|
|
scope:
|
|
|
|
- PARAMETERS
|
|
|
|
- STAGES
|
|
|
|
- STEPS
|
|
|
|
mandatory: false
|
|
|
|
default: nexus3
|
2020-03-31 15:16:18 +02:00
|
|
|
aliases:
|
|
|
|
- name: nexus/version
|
2020-03-20 19:20:52 +02:00
|
|
|
- name: url
|
|
|
|
type: string
|
|
|
|
description: URL of the nexus. The scheme part of the URL will not be considered, because only http is supported.
|
|
|
|
scope:
|
|
|
|
- PARAMETERS
|
|
|
|
- STAGES
|
|
|
|
- STEPS
|
|
|
|
mandatory: true
|
2020-03-31 15:16:18 +02:00
|
|
|
aliases:
|
|
|
|
- name: nexus/url
|
2020-03-20 19:20:52 +02:00
|
|
|
- name: repository
|
|
|
|
type: string
|
|
|
|
description: Name of the nexus repository.
|
|
|
|
scope:
|
|
|
|
- PARAMETERS
|
|
|
|
- STAGES
|
|
|
|
- STEPS
|
|
|
|
mandatory: true
|
2020-03-31 15:16:18 +02:00
|
|
|
aliases:
|
|
|
|
- name: nexus/repository
|
2020-03-20 19:20:52 +02:00
|
|
|
- name: groupId
|
|
|
|
type: string
|
|
|
|
description: Group ID of the artifacts. Only used in MTA projects, ignored for Maven.
|
|
|
|
scope:
|
|
|
|
- PARAMETERS
|
|
|
|
- STAGES
|
|
|
|
- STEPS
|
2020-03-31 15:16:18 +02:00
|
|
|
aliases:
|
|
|
|
- name: nexus/groupId
|
2020-03-20 19:20:52 +02:00
|
|
|
- name: artifactId
|
|
|
|
type: string
|
|
|
|
description: The artifact ID used for both the .mtar and mta.yaml files deployed for MTA projects, ignored for Maven.
|
|
|
|
scope:
|
|
|
|
- PARAMETERS
|
|
|
|
- name: globalSettingsFile
|
|
|
|
type: string
|
|
|
|
description: Path to the mvn settings file that should be used as global settings file.
|
|
|
|
scope:
|
|
|
|
- GENERAL
|
|
|
|
- PARAMETERS
|
|
|
|
- STAGES
|
|
|
|
- STEPS
|
|
|
|
aliases:
|
|
|
|
- name: maven/globalSettingsFile
|
|
|
|
- name: m2Path
|
|
|
|
type: string
|
|
|
|
description: The path to the local .m2 directory, only used for Maven projects.
|
|
|
|
scope:
|
|
|
|
- GENERAL
|
|
|
|
- PARAMETERS
|
|
|
|
- STAGES
|
|
|
|
- STEPS
|
|
|
|
aliases:
|
|
|
|
- name: maven/m2Path
|
|
|
|
- name: additionalClassifiers
|
|
|
|
type: string
|
|
|
|
description: List of additional classifiers that should be deployed to nexus. Each item is a map of a type and a classifier name.
|
|
|
|
scope:
|
|
|
|
- PARAMETERS
|
|
|
|
- STAGES
|
|
|
|
- STEPS
|
2020-03-31 15:16:18 +02:00
|
|
|
aliases:
|
|
|
|
- name: nexus/additionalClassifiers
|
2020-03-20 19:20:52 +02:00
|
|
|
- name: user
|
|
|
|
type: string
|
|
|
|
description: User
|
|
|
|
scope:
|
|
|
|
- PARAMETERS
|
|
|
|
- name: password
|
|
|
|
type: string
|
|
|
|
description: Password
|
|
|
|
scope:
|
|
|
|
- PARAMETERS
|
|
|
|
containers:
|
|
|
|
- name: mvn
|
|
|
|
image: maven:3.6-jdk-8
|
|
|
|
imagePullPolicy: Never
|