Pipeline; dotnet nuget push not reading from nuget.config

79 views
Skip to first unread message

Jeroen Hendriks

unread,
Aug 3, 2018, 4:06:29 PM8/3/18
to Jenkins Users
I have a step which should push my nuget package to my private nexus repository.

steps {
       powershell
("dotnet nuget push Tans.Library.Contracts/bin/Debug/*.nupkg -s NexusOss")
}

But I get the error that it can't find my source. And I also can't use the direct url since it requires credentials.
I'm at a bit of a loss because the command works fine in a normal job, but not with pipeline.

Slide

unread,
Aug 3, 2018, 4:08:26 PM8/3/18
to jenkins...@googlegroups.com
Do you have any credentials or anything setup in your non-pipeline job?

--
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/a3d660d5-95d2-4204-93a4-51a7f9aa7a1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jeroen Hendriks

unread,
Aug 15, 2018, 5:29:13 AM8/15/18
to Jenkins Users
Well I have a nuget.config file. The non-pipeline job reads it just fine with the "dotnet nuget push" command.
The pipeline job on the other hand does not.
I tried putting the nuget.config file in every possible location, but to no avail.

Op vrijdag 3 augustus 2018 22:08:26 UTC+2 schreef slide:
Reply all
Reply to author
Forward
0 new messages