Issue pushing Artifact to Nexus from Jenkins using Nexus Artifact Uploader

759 views
Skip to first unread message

gotvi...@gmail.com

unread,
Sep 20, 2018, 3:47:31 PM9/20/18
to Nexus Users

I'm trying to publish an Artifact from Jenkins to Sonatype Nexus Repository Manager OSS 3.12.0-01 using the Nexus Artifact Uploader plugin.  But, the upload fails.  Below are the details I have given in the plugin in Jenkins:

 

KeyValue
Nexus VersionNexus3
ProtocalHTTP
Nexus URL$NEXUS-URL
CredentialsCre********
GroupIdgroup-01
Version0.0.1
Repositorytestrepo
ArtifactIdabcd-0.3
Typetgz
Classifier 
Fileabcd-0.3.tgz

 

 

When I try to build, I get the following output

Uploading: $REPOSITORY_URL/group-01/abcd-0.3/0.0.1/abcd-0.3-0.0.1.tgz
10 % completed (193 kB / 1.9 MB).
20 % completed (385 kB / 1.9 MB).
30 % completed (578 kB / 1.9 MB).
40 % completed (770 kB / 1.9 MB).
50 % completed (958 kB / 1.9 MB).
Failed to deploy artifacts: Could not transfer artifact group-01:abcd-0.3:tgz:0.0.1 from/to testrepo ($REPOSITORY_URL): Broken pipe (Write failed)
ERROR: Uploading file abcd-0.3.tgz failed.
[Office365connector] No webhooks to notify
Finished: FAILURE

The repository type of the testrepo is hosted and the repository format is npm.  But, with the same configuration, I'm able to push the file to another repository for which the repository type is hosted and the repository format is raw.  Also, I'm manually able to upload this file through Nexus UI into the npmrepository (for which the Jenkins job is unable to push artifact).

 

Please suggest.

Rich Seddon

unread,
Sep 20, 2018, 4:17:42 PM9/20/18
to Nexus Users

I don't think that plugin has support for any format that can't accept a simple HTTP PUT request for upload.  And that won't work for npm, that's not how it's upload works.

gotvi...@gmail.com

unread,
Sep 21, 2018, 10:06:17 AM9/21/18
to Nexus Users
Thanks Rich.  I'm using npm publish as a work around currently, but wanted to check if it's possible to make use of the plugin.  With what you mentioned, seems it won't work.  Thanks again for the update.
Reply all
Reply to author
Forward
0 new messages