Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,18 @@ jobs:

eng/common/build.sh -bl --projects $(Build.SourcesDirectory)/test/Microsoft.DotNet.SourceBuild.SmokeTests/Microsoft.DotNet.SourceBuild.SmokeTests.csproj --restore

source ./eng/common/tools.sh
InitializeDotNetCli true

echo "##vso[task.setvariable variable=Platform]$platform"
echo "##vso[task.setvariable variable=MsftSdkTarballPath]$(Pipeline.Workspace)/Artifacts/$msft_sdk_tarball_name"
echo "##vso[task.setvariable variable=SdkTarballPath]$(Pipeline.Workspace)/Artifacts/$sdk_tarball_name"
echo "##vso[task.setvariable variable=DotNetPath]$_InitializeDotNetCli"
displayName: Prepare Tests
workingDirectory: $(Build.SourcesDirectory)

- script: >
.dotnet/dotnet test
$(DotNetPath)/dotnet test
$(Build.SourcesDirectory)/test/Microsoft.DotNet.SourceBuild.SmokeTests/Microsoft.DotNet.SourceBuild.SmokeTests.csproj
--filter "Category=SdkContent"
--logger:'trx;LogFileName=$(Agent.JobName)_SDKDiffTests.trx'
Expand Down Expand Up @@ -169,6 +173,7 @@ jobs:
- ${{ if and(eq(parameters.publishTestResultsPr, 'true'), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release'))) }}:
- template: ../steps/create-baseline-update-pr.yml
parameters:
dotnetPath: $(DotNetPath)
pipeline: sdk
repo: dotnet/installer
originalFilesDirectory: src/SourceBuild/content/test/Microsoft.DotNet.SourceBuild.SmokeTests/assets/baselines
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,23 @@ stages:
- script: |
source ./eng/common/tools.sh
InitializeDotNetCli true
./.dotnet/dotnet tool restore
displayName: Initialize tooling
echo "##vso[task.setvariable variable=DotNetPath]$_InitializeDotNetCli"
displayName: Install .NET CLI

- script: |
$(DotNetPath)/dotnet tool restore
displayName: Restore tools
workingDirectory: $(Build.SourcesDirectory)/src/installer

- script: |
set -e
sha=`./.dotnet/dotnet darc vmr get-version --vmr "$(Build.SourcesDirectory)" installer`
sha=`$(DotNetPath)/dotnet darc vmr get-version --vmr "$(Build.SourcesDirectory)" installer`
echo "##vso[build.addbuildtag]$sha"
displayName: Tag the build
workingDirectory: $(Build.SourcesDirectory)/src/installer

- script: >
./.dotnet/dotnet darc vmr scan-binary-files
$(DotNetPath)/dotnet darc vmr scan-binary-files
--vmr "$(Build.SourcesDirectory)"
--tmp "$(Agent.TempDirectory)"
--baseline-file "src/VirtualMonoRepo/allowed-binaries.txt"
Expand All @@ -48,7 +52,7 @@ stages:
continueOnError: true

- script: >
./.dotnet/dotnet darc vmr scan-cloaked-files
$(DotNetPath)/dotnet darc vmr scan-cloaked-files
--vmr "$(Build.SourcesDirectory)"
--tmp "$(Agent.TempDirectory)"
|| (echo '##[error]Found cloaked files in the VMR' && exit 1)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
parameters:
- name: dotnetPath
type: string
default: '$(Build.SourcesDirectory)/.dotnet'

# The pipeline that is being run
# Used to determine the correct baseline update tool to run
# Currently only supports "sdk" and "license"
Expand Down Expand Up @@ -31,7 +35,7 @@ steps:

branchName=$(echo "$(Build.SourceBranch)" | sed 's/refs\/heads\///g')

.dotnet/dotnet run \
${{ parameters.dotnetPath }}/dotnet run \
--project eng/tools/CreateBaselineUpdatePR/ \
--property:RestoreSources="$restoreSources" \
"${{ parameters.pipeline }}" \
Expand Down
2 changes: 2 additions & 0 deletions src/SourceBuild/content/eng/pipelines/vmr-license-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ jobs:
- script: |
source ./eng/common/tools.sh
InitializeDotNetCli true
echo "##vso[task.setvariable variable=DotNetPath]$_InitializeDotNetCli"
displayName: Install .NET SDK
workingDirectory: $(Build.SourcesDirectory)

Expand All @@ -167,6 +168,7 @@ jobs:

- template: templates/steps/create-baseline-update-pr.yml
parameters:
dotnetPath: $(DotNetPath)
pipeline: license
repo: dotnet/installer
originalFilesDirectory: src/SourceBuild/content/test/Microsoft.DotNet.SourceBuild.SmokeTests/assets/baselines/licenses
Expand Down
Loading