1 changed file
Build | ||
Publish-AzDOArtifactFeed.ps1 | ||
Publish-AzDOArtifactFeed.ps1
/Build/Publish-AzDOArtifactFeed.ps1-1+10/Build/Publish-AzDOArtifactFeed.ps1
Add comment 1 Plus Param(
Add comment 2 Plus [string]$PAT
Add comment 3 Plus )
Add comment 4 Plus
Add comment 1 5 # Variables
Add comment 2 6 # $powershellGetVersion = '1.5.0.0' # DO NOT use the latest 1.6.0 version as there is issues with this process
Add comment 3 7 # $moduleFolderPath = 'C:\Users\adamr\code\PowerShellPipeline\Staging\PSvCloud' # only target folder, NOT the .psm1 or .psd1
Add comment 5 9 $repositoryName = 'psmodules'
Add comment 6 10 $feedUsername = 'NotChecked'
Add comment 7 11 # $PAT = $env:ArtifactFeedPat
Add comment 8 Minus $PAT = $(ArtifactFeedPat)
Add comment 12 Plus # $PAT = $(ArtifactFeedPat)
Add comment 9 13 $packageSourceUrl = "https://adamrushuk.pkgs.visualstudio.com/_packaging/$repositoryName/nuget/v2" # Enter your VSTS AccountName (note: v2 Feed)
Add comment 10 14
Add comment 15 Plus # Testing
Add comment 16 Plus Write-Host "ARTestVar env var: [$env:ARTestVar]"
Add comment 17 Plus Write-Host "ArtifactFeedPat 'secret' env var: [$env:ArtifactFeedPat]"
Add comment 18 Plus Write-Host "PAT param passed in: [$PAT]"
Add comment 19 Plus
Add comment 11 20 # This is downloaded during Step 3, but could also be "C:\Users\USERNAME\AppData\Local\Microsoft\Windows\PowerShell\PowerShellGet\NuGet.exe"
Add comment 12 21 # if not running script as Administrator.
Add comment 13 22 $nugetPath = 'C:\ProgramData\Microsoft\Windows\PowerShell\PowerShellGet\NuGet.exe'