Skip to content

Instantly share code, notes, and snippets.

@rezamt
Created February 7, 2019 04:28
Show Gist options
  • Save rezamt/3d78480e95a9cb69125c85947f6c99dc to your computer and use it in GitHub Desktop.
Save rezamt/3d78480e95a9cb69125c85947f6c99dc to your computer and use it in GitHub Desktop.
Jenkins Nexus Repo
# Nexus
nexusArtifactUploader artifacts:
[[ artifactId: 'simple-maven-project-with-tests-1.0-${BUILD_NUMBER}',
classifier: 'JAR',
file: 'target/simple-maven-project-with-tests-1.0-SNAPSHOT.jar',
type: 'jar']],
credentialsId: 'nexus-admin',
groupId: 'inuit-repo-groups',
nexusUrl: 'localhost:8081/repository/cm2-ami-build/',
nexusVersion: 'nexus2',
protocol: 'http',
repository: 'cm2-ami-build',
version: '1.0'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment