This repository was archived by the owner on Mar 16, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -41,11 +41,11 @@ phases:
4141
4242
4343 - powershell : |
44- $username = $env:DeployUserName
45- $password = $env:DeployPassword
46- $filePath = "$($env:Build.ArtifactStagingDirectory)/artifact.zip"
47- $apiUrl = "https://$($env:Parameters.WebAppName).scm.azurewebsites.net/api/zipdeploy"
48- $base64AuthInfo = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f $username, $password)))
49- $userAgent = "powershell/1.0"
50- Invoke-RestMethod -Uri $apiUrl -Headers @{Authorization=("Basic {0}" -f $base64AuthInfo)} -UserAgent $userAgent -Method POST -InFile $filePath -ContentType "multipart/form-data"
51- displayName: 'PowerShell Script '
44+ $username = $env:DeployUserName
45+ $password = $env:DeployPassword
46+ $filePath = "$($env:Build.ArtifactStagingDirectory)/artifact.zip"
47+ $apiUrl = "https://$($env:Parameters.WebAppName).scm.azurewebsites.net/api/zipdeploy"
48+ $base64AuthInfo = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f $username, $password)))
49+ $userAgent = "powershell/1.0"
50+ Invoke-RestMethod -Uri $apiUrl -Headers @{Authorization=("Basic {0}" -f $base64AuthInfo)} -UserAgent $userAgent -Method POST -InFile $filePath -ContentType "multipart/form-data"
51+ displayName: 'deploy '
You can’t perform that action at this time.
0 commit comments