Tuesday, November 1, 2016

Octopus msbuild cmd to publish the nuget package

Just record it here in case I will need it later,

msbuild /t:build /p:RunOctoPack=true /p:OctoPackPackageVersion=1.0.0-beta /p:OctoPackPublishPackageToHttp=http://<server>:3001/nuget/packages /p:OctoPackPublishApiKey=<apikey>

Also if the nuget is behind proxy, need to set it up with the command
  • nuget.exe config -set http_proxy=http://my.proxy.address:port
    nuget.exe config -set http_proxy.user=<domain>\<username>
    nuget.exe config -set http_proxy.password=<password>

No comments: