Skip to content

Commit fbf1437

Browse files
authored
Add build defname to buildnumber (#328)
* Add build defname to buildnumber * Revert format changes
1 parent 21f454b commit fbf1437

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.azure-pipelines/common/package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ steps:
4747
Destination: AzureBlob
4848
storage: $(WEB_BUILDS_STG_ACCT)
4949
ContainerName: $(WEB_BUILDS_CONTAINER)
50-
BlobPrefix: '$(build.buildnumber)'
50+
BlobPrefix: '$(build.definitionname)/$(build.buildnumber)'
5151
# Only do steps for publishing web bits on Windows as AzureFileCopy is only supported on Windows
5252
# See: https://github.com/microsoft/azure-pipelines-tasks/issues/8920
5353
condition: and(eq(variables['Agent.OS'], 'Windows_NT'), ne(variables['System.PullRequest.IsFork'], 'True'))
@@ -69,7 +69,7 @@ steps:
6969
--out tsv
7070
# Replace all % with %25 so vscode.dev does not re-encode the URL thus breaking it.
7171
$sasToken = $sasToken -replace ("%", "%25")
72-
$extensionRootUrl = "https://$(WEB_BUILDS_STG_ACCT).blob.core.windows.net/$(WEB_BUILDS_CONTAINER)/" + "$(build.buildnumber)" + "/?" + $sasToken
72+
$extensionRootUrl = "https://$(WEB_BUILDS_STG_ACCT).blob.core.windows.net/$(WEB_BUILDS_CONTAINER)/" + "$(build.definitionname)/$(build.buildnumber)" + "/?" + $sasToken
7373
$extensionRootUrl | Out-File -FilePath '$(build.artifactstagingdirectory)/web-sas.txt'
7474
echo $extensionRootUrl
7575
# Only do steps for publishing web bits on Windows as AzureFileCopy is only supported on Windows

0 commit comments

Comments
 (0)