# nexus-artifact-uploader-plugin **Repository Path**: mamh-java/nexus-artifact-uploader-plugin ## Basic Information - **Project Name**: nexus-artifact-uploader-plugin - **Description**: https://github.com/mamh-java/nexus-artifact-uploader-plugin - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-07-16 - **Last Updated**: 2025-03-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Nexus Artifact Uploader This plugin goal is to upload artifacts generated from non-maven projects to Nexus This plugin now supports Nexus-2.x & Nexus-3.x. Uploading snapshots is not supported by this plugin. ### Job DSL example ```groovy freeStyleJob('NexusArtifactUploaderJob') { steps { nexusArtifactUploader { nexusVersion('nexus2') protocol('http') nexusUrl('localhost:8080/nexus') groupId('sp.sd') version('2.4') repository('NexusArtifactUploader') credentialsId('44620c50-1589-4617-a677-7563985e46e1') artifact { artifactId('nexus-artifact-uploader') type('jar') classifier('debug') file('nexus-artifact-uploader.jar') } artifact { artifactId('nexus-artifact-uploader') type('hpi') classifier('debug') file('nexus-artifact-uploader.hpi') } } } } ``` # Jenkins pipeline example ```groovy nexusArtifactUploader( nexusVersion: 'nexus3', protocol: 'http', nexusUrl: 'my.nexus.address', groupId: 'com.example', version: version, repository: 'RepositoryName', credentialsId: 'CredentialsId', artifacts: [ [artifactId: projectName, classifier: '', file: 'my-service-' + version + '.jar', type: 'jar'] ] ) ```