Skip to content
This repository was archived by the owner on Mar 16, 2022. It is now read-only.

Commit 4b39299

Browse files
committed
fix archive and build variable reference
1 parent 93f629f commit 4b39299

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.vsts/v1_attribute/config-ci-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ phases:
3838
inputs:
3939
rootFolderOrFile: '$(build.SourcesDirectory)/Tmp'
4040
archiveFile: '$(Build.ArtifactStagingDirectory)/artifact.zip'
41+
includeRootFolder: false
4142

4243
- task: PublishBuildArtifacts@1
4344
displayName: 'Publish Artifact: drop'
@@ -47,7 +48,7 @@ phases:
4748
- powershell: |
4849
$username = $env:DeployUserName
4950
$password = $env:DeployPassword
50-
$filePath = "$($env:Build.ArtifactStagingDirectory)/artifact.zip"
51+
$filePath = "$($env:Build_ArtifactStagingDirectory)/artifact.zip"
5152
$apiUrl = "https://$env:WebAppName.scm.azurewebsites.net/api/zipdeploy"
5253
echo "username : $username"
5354
echo "password : $password"
@@ -57,7 +58,7 @@ phases:
5758
- powershell: |
5859
$username = $env:DeployUserName
5960
$password = $env:DeployPassword
60-
$filePath = "$($env:Build.ArtifactStagingDirectory)/artifact.zip"
61+
$filePath = "$($env:Build_ArtifactStagingDirectory)/artifact.zip"
6162
$apiUrl = "https://$env:WebAppName.scm.azurewebsites.net/api/zipdeploy"
6263
$base64AuthInfo = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f $username, $password)))
6364
$userAgent = "powershell/1.0"

0 commit comments

Comments
 (0)