metadata: name: nexusUpload aliases: - name: mavenExecute deprecated: false description: Upload artifacts to Nexus longDescription: | Upload build artifacts to a Nexus Repository Manager. Supports MTA and (multi-module) Maven projects. spec: inputs: secrets: - name: nexusCredentialsId description: The technical username/password credential for accessing the nexus endpoint. type: jenkins aliases: - name: nexus/credentialsId 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 possibleValues: - nexus2 - nexus3 aliases: - name: nexus/version - 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 aliases: - name: nexus/url - name: repository type: string description: Name of the nexus repository. scope: - PARAMETERS - STAGES - STEPS mandatory: true aliases: - name: nexus/repository - name: groupId type: string description: Group ID of the artifacts. Only used in MTA projects, ignored for Maven. scope: - PARAMETERS - STAGES - STEPS aliases: - name: nexus/groupId - 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: user type: string description: Username for accessing the Nexus endpoint. scope: - PARAMETERS - name: password type: string description: Password for accessing the Nexus endpoint. scope: - PARAMETERS containers: - name: mvn image: maven:3.6-jdk-8 imagePullPolicy: Never