-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Blocker
-
Component/s: nexus-artifact-uploader-plugin
-
Environment:jenkins 2.156 on windows using declarative pipeline to upload artifacts
By using nexus-artifact-uploader-plugin I am able to upload artifacts to existing custom repository in nexus but when I am trying to upload to new repository which is not there in nexus it is throwing error.
Â
stage ('upload artifact') { Â Â
steps {Â Â Â Â Â Â Â Â
nexusArtifactUploader artifacts: [
[artifactId: 'test',        Â
classifier: '', file: 'test.zip',
type: 'zip']],       Â
 credentialsId: 'nexusid',      Â
  groupId: 'gitlfs',      Â
  nexusUrl: 'nexus_url',  Â
  nexusVersion: 'nexus3',    Â
protocol: 'http',      Â
  repository: '<NEW_REPO>',  Â
      version: "${params.version}"  Â
} }
Â
NOTE: My requirement is to create new custom repository in nexus repository and upload artifacts to created repository through jenkins
Thank you for your help