I've been trying to configure the Nexus Jenkins plugin for about a week now. Only to find out that the plugin didn't work with our Nexus 3.x oss.
Since then I have downgraded our nexus and have configured everything to work. Except, when I try to add the Maven artifact file path to the jenkins.war file I get an error with the following message:
Uploading Maven asset with groupId: com.riddlesvillage artifactId: core
version: Version: 1.0.0-SNAPSHOT To repository: releases
Upload of /usr/share/jenkins/ failed
Failing build due to failure to upload file to Nexus Repository Manager
Publisher
FATAL: Upload of /usr/share/jenkins/ failed
...
Caused: java.io.IOException: Failed to copy /usr/share/jenkins to
/tmp/jenkins6954159502505207420tmp `$`
Tho, when I move the file path and leave it empty it builds, but it still doesn't upload anything to nexus.