chocolatey / cChoco

Community resource to manage Chocolatey
Apache License 2.0
153 stars 99 forks source link

Download artifacts from private proget using credentails #110

Closed subash544772 closed 6 years ago

subash544772 commented 6 years ago

Configuration BuildServerDSC
{
Import-DscResource -ModuleName 'PSDesiredStateConfiguration'
Import-DscResource -ModuleName cChoco $Cred = Get-AutomationPSCredential -Name "nugetcred"

Node localhost            
{       
   cChocoInstaller installChoco
  {
    InstallDir = "C:\Program Files (x86)\choco"
  }

cChocoPackageInstaller installaddproducttochangecontrol { Ensure = 'Present' Name = "AddProductToChangeControl" Source = "Private proget server" PsDscRunAsCredential = $Cred
DependsOn = "[cChocoInstaller]installChoco" } } }

what will be best way to download chocolatey artifacts from private proget feed?

pauby commented 6 years ago

@subash544772 That would be better of asked in the cChoco Gitter channel