Skip to content

Commit

Permalink
[Internal] Preview Build: Add preview build as part of gates (Azure#1413
Browse files Browse the repository at this point in the history
)

* Add preview build as part of gates

* Update templates/build-preview.yml

Co-Authored-By: Matias Quaranta <ealsur@users.noreply.github.com>

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
  • Loading branch information
j82w and ealsur authored Apr 22, 2020
1 parent aeec699 commit 044542e
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Microsoft.Azure.Cosmos/src/Resource/Database/Database.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public abstract Task<ContainerResponse> CreateContainerAsync(
/// Only the container id is used to verify if there is an existing container. Other container properties such as throughput are not validated and can be different then the passed properties.</para>
/// </summary>
/// <param name="containerProperties">The <see cref="ContainerProperties"/> object.</param>
/// <param name="throughput">(Optional) The throughput provisioned for a container in measurement of Requests Units per second in the Azure Cosmos DB service.</param>
/// <param name="throughputProperties">(Optional) The throughput provisioned for a container in measurement of Requests Units per second in the Azure Cosmos DB service.</param>
/// <param name="requestOptions">(Optional) The options for the request.</param>
/// <param name="cancellationToken">(Optional) <see cref="CancellationToken"/> representing request cancellation.</param>
/// <returns>A <see cref="Task"/> containing a <see cref="ContainerResponse"/> which wraps a <see cref="ContainerProperties"/> containing the read resource record.
Expand Down
6 changes: 6 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,9 @@ jobs:
BuildConfiguration: Release
Arguments: $(ReleaseArguments)
VmImage: $(VmImage)

- template: templates/build-preview.yml
parameters:
BuildConfiguration: Release
Arguments: $(ReleaseArguments)
VmImage: $(VmImage)
29 changes: 29 additions & 0 deletions templates/build-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# File: templates/build-preview.yml

parameters:
BuildConfiguration: ''
Arguments: ''
VmImage: ''
OS: 'Windows'

jobs:

- job:
displayName: Preview Flag ${{ parameters.BuildConfiguration }}
pool:
vmImage: ${{ parameters.VmImage }}

steps:
- checkout: self # self represents the repo where the initial Pipelines YAML file was found
clean: true # if true, execute `execute git clean -ffdx && git reset --hard HEAD` before fetching

- task: DotNetCoreCLI@2
displayName: Build Microsoft.Azure.Cosmos PREVIEW
inputs:
command: build
configuration: $(parameters.BuildConfiguration)
nugetConfigPath: NuGet.config
projects: Microsoft.Azure.Cosmos.sln
arguments: -p:Optimize=true -p:IsPreview=true
versioningScheme: OFF

0 comments on commit 044542e

Please sign in to comment.