Jenkins reponds with Illegal Characters in Path when using nuget restore

19 views
Skip to first unread message

Nef Rey

unread,
Aug 26, 2019, 6:03:01 PM8/26/19
to Jenkins Users
I'm having this weird problem in one of my nodes.

I get "Illegal characters in path"  after issuing the statement: %WORKSPACE%\MySolutionFolder\SpecialFiles\nuget.exe restore "%WORKSPACE%\MySolutionFolder\CyaCoreProj.sln" -configfile %WORKSPACE%\MySolutionFolder\SpecialFiles\Nuget.config

or 

c:\jenkinstools\nuget restore "%WORKSPACE%\MySolutionFolder\MySolutionName.sln" -configfile c:\jenkinstools\NuGet.Config

and many other variations...

I can run those statements and build my solution in one of my nodes which is the same system where I develop the solution, but when I run any of the those statements in another node I get the "Illegal characters in path" message all the time.

I'm using the same version of Nuget.exe and config file in all nodes.

Has anyone seen this and have found a solution?


I'm using nuget ver. 5.1.0 and was also using the previous one.
Using Jenkins 2.164.3


Nef Rey

unread,
Aug 27, 2019, 2:35:18 PM8/27/19
to Jenkins Users
After further research,  it happens with the last few releases of Jenkins 5.1.0, 5.2 and I believe the immediate before those 4.8.3 although not sure. 

I tried a older release 4.8.2 of nuget and it worked fine in Jenkins.

Anyone knows anything about this???

Slide

unread,
Aug 27, 2019, 3:03:06 PM8/27/19
to Jenkins User Mailing List
Are you sure the node's locale is set the same as the other nodes?

--
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/d892678b-3237-4a7f-9608-3b276a623f2f%40googlegroups.com.

Nef Rey

unread,
Aug 27, 2019, 10:28:38 PM8/27/19
to Jenkins Users
The nodes locales are the same. 

After going back to an older version of nuget the Illegal Characters bug went away.  However, I then got a different bug when running msbuild at the node about Tasks being repeated or a similar message.  The new bug turned out that I was missing the Nugget Targetting Pack.  Once that was installed everything went back to normal.  Now that the Targets are installed, I may try going back to the newer version of Nuget and  see f they now work.  Will keep everyone posted.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkins...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages