Discussion:
Jenkins upload dotnet build results to nexus
Faad Sayaou
2018-11-12 07:18:22 UTC
Permalink
Hi all,
I am using a pipeline script to upload the result of my dotnet build (in a
zip) to nexus repo 3. I am using the Nexus repository manager to do so.
However, I am getting an error when I execute the build. Is there any way I
can use maven to upload the zipped results to nexus?
here is my script


*stage('Push to nexus') {*
* nexusPublisher nexusInstanceId: '1234', nexusRepositoryId:
'myrepo', packages: [[$class: 'MavenPackage', mavenAssetList: [[classifier:
'', extension: '', filePath:
'/var/jenkins_home/workspace/DotnetTest/Release.zip']], mavenCoordinate:
[artifactId: 'HelloJenkins', groupId: 'main', packaging: 'zip', version:
'1.0.0']]]*
* }*

I keep on getting error

*Failed build due to failure to upload file to Nexus Repository manager
publisher.*

*com.sonatype.nexus.api.dh: Bad Request*
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/539a9e54-aaaa-4e30-844f-f322f9d22697%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...