Jenkins pushing to a Nuget hosted repository (Nexus)

201 views
Skip to first unread message

Faad Sayaou

unread,
Feb 23, 2019, 7:40:00 AM2/23/19
to Jenkins Users
Hi All,
I am trying to push my nuget package generated from dotnet build and pack command. I already installed the Nuget plugin and I also configured API key and server URL.
I left the NuGet command line executable field empty in the jenkins config.

I did a sh "nuget push myNuget.package.$version.symbols.nupkg -s $NugetServer -sk <API key>"

I get an error on the console saying nuget command not found


Please help!!!!!

Richard Bywater

unread,
Feb 23, 2019, 3:19:51 PM2/23/19
to jenkins...@googlegroups.com
I have never used Nuget but looks like Nuget isn't installed or isn't present on the path of the user that Jenkins is running as?

Also usually plugins will expose their own "methods" so would think you'd be using one of those rather than using a sh step. 

Richard 

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f22991dc-2ddf-4a4a-b316-41baa9ea2d35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages