ReadyRoll Core VS 2017 TFS build OctoPack fails to nuget push due to -s instead of -Source
Hi, we are trying to use ReadyRoll Core as part of VS 2017 and getting issue with OctoPack which is using –s instead of –Source during nuget.exe push and end up with a broken build, can you please let us know if this is a known issue or how can we fix it before going with Pro version??
Tagged:
Comments
<Message Text="Publish to repository: $(OctoPackPublishPackageToHttp)" Condition="'$(OctoPackPublishPackageToHttp)' != ''" Importance="Normal" />
<Exec Command='"$(OctoPackNuGetExePath)" push "@(OctoPackBuiltPackages)" $(OctoPackPublishApiKey) -s $(OctoPackPublishPackageToHttp) $(OctoPackNuGetPushProperties)' Condition="'$(OctoPackPublishPackageToHttp)' != ''" />
=>
<Message Text="Publish to repository: $(OctoPackPublishPackageToHttp)" Condition="'$(OctoPackPublishPackageToHttp)' != ''" Importance="Normal" />
<Exec Command='"$(OctoPackNuGetExePath)" push "@(OctoPackBuiltPackages)" $(OctoPackPublishApiKey) -Source $(OctoPackPublishPackageToHttp) $(OctoPackNuGetPushProperties)' Condition="'$(OctoPackPublishPackageToHttp)' != ''" />
I'll let you know as soon as I have an ETA for the fix. In the meantime, a workaround would be to manually edit the OctoPack.targets on the build agent to correct the NuGet.exe syntax as you've pointed out.
Product Manager
Redgate Software