Skip to content

edgeXNexusPublish

Overview

Shared library to publish a ZIP file to a specific nexus repo.

Parameters

Name Required Type Description and Default Value
serverId true str Used to lookup credentials in mavenSettings file.

Example: logs, docker, nexus.edgexfoundry.org
mavenSettings true str Config file Id to use publish to Nexus.

Example: log-settings
nexusRepo true str The nexus repository name where you would like to publish your artifacts.
nexusPath false str Path on the nexus server where file should be stored.

Default:${env.SILO}/${env.JENKINS_HOSTNAME}/${env.JOB_NAME}/${env.BUILD_NUMBER}
zipFilePath true str path to ZIP file, typically in the workspace.

Usage

edgeXNexusPublish([serverId: 'logs', mavenSettings: 'log-settings', nexusRepo: 'logs', zipFilePath: '*.zip'])