|
@@ -18,11 +18,26 @@ phases:
|
|
|
variables:
|
|
variables:
|
|
|
CI: true
|
|
CI: true
|
|
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
|
|
|
|
+
|
|
|
|
|
+ # This variable is required by MicroBuildSigningPlugin to determine permissions for codesigning.
|
|
|
|
|
+ TeamName: AspNetCore
|
|
|
|
|
+
|
|
|
|
|
+ # SignType = { test, real }
|
|
|
|
|
+ # This is prefixed underscore because variables automatically become environment variables (and therefore MSBuild properties),
|
|
|
|
|
+ # and this one was causing issues in MSBuild projects which use the $(SignType) MSbuild prop.
|
|
|
|
|
+ _SignType: real
|
|
|
|
|
+
|
|
|
steps:
|
|
steps:
|
|
|
- task: NodeTool@0
|
|
- task: NodeTool@0
|
|
|
displayName: Install Node 10.x
|
|
displayName: Install Node 10.x
|
|
|
inputs:
|
|
inputs:
|
|
|
versionSpec: 10.x
|
|
versionSpec: 10.x
|
|
|
|
|
+ - task: MicroBuildSigningPlugin@1
|
|
|
|
|
+ displayName: Install MicroBuild plugin
|
|
|
|
|
+ condition: and(succeeded(), in(variables['_SignType'], 'test', 'real'))
|
|
|
|
|
+ inputs:
|
|
|
|
|
+ signType: $(_SignType)
|
|
|
|
|
+ zipSources: false
|
|
|
# TODO: configure build.cmd to build both x64 and x86 in one invocation
|
|
# TODO: configure build.cmd to build both x64 and x86 in one invocation
|
|
|
# TODO build.cmd -ci
|
|
# TODO build.cmd -ci
|
|
|
- script: build.cmd /p:SkipTests=true /p:Configuration=$(BuildConfiguration) /p:BuildNumber=$(Build.BuildNumber) /t:Build /t:BuildSharedFx /p:SharedFxRID=win-x64 /t:BuildFallbackArchive
|
|
- script: build.cmd /p:SkipTests=true /p:Configuration=$(BuildConfiguration) /p:BuildNumber=$(Build.BuildNumber) /t:Build /t:BuildSharedFx /p:SharedFxRID=win-x64 /t:BuildFallbackArchive
|
|
@@ -34,6 +49,7 @@ phases:
|
|
|
-GitCredential '$(dn-bot-devdiv-build-rw-code-rw)'
|
|
-GitCredential '$(dn-bot-devdiv-build-rw-code-rw)'
|
|
|
-Config $(BuildConfiguration)
|
|
-Config $(BuildConfiguration)
|
|
|
-BuildNumber $(Build.BuildNumber)
|
|
-BuildNumber $(Build.BuildNumber)
|
|
|
|
|
+ -SignType $(_SignType)
|
|
|
displayName: Build ANCM installers
|
|
displayName: Build ANCM installers
|
|
|
# TODO: configure harvesting to run as a part of build.cmd
|
|
# TODO: configure harvesting to run as a part of build.cmd
|
|
|
- powershell: >
|
|
- powershell: >
|
|
@@ -42,6 +58,7 @@ phases:
|
|
|
-x86 artifacts/runtime/aspnetcore-runtime-internal-2.2.0-preview2-$(Build.BuildNumber)-win-x86.zip
|
|
-x86 artifacts/runtime/aspnetcore-runtime-internal-2.2.0-preview2-$(Build.BuildNumber)-win-x86.zip
|
|
|
-Config $(BuildConfiguration)
|
|
-Config $(BuildConfiguration)
|
|
|
-BuildNumber $(Build.BuildNumber)
|
|
-BuildNumber $(Build.BuildNumber)
|
|
|
|
|
+ -SignType $(_SignType)
|
|
|
displayName: Build Windows installers
|
|
displayName: Build Windows installers
|
|
|
- task: PublishTestResults@2
|
|
- task: PublishTestResults@2
|
|
|
displayName: Publish test results
|
|
displayName: Publish test results
|
|
@@ -56,6 +73,9 @@ phases:
|
|
|
pathtoPublish: ./artifacts/
|
|
pathtoPublish: ./artifacts/
|
|
|
artifactName: artifacts-Windows-Release
|
|
artifactName: artifacts-Windows-Release
|
|
|
artifactType: Container
|
|
artifactType: Container
|
|
|
|
|
+ - task: MicroBuildCleanup@1
|
|
|
|
|
+ displayName: Cleanup MicroBuild tasks
|
|
|
|
|
+ condition: always()
|
|
|
|
|
|
|
|
- phase: macOS
|
|
- phase: macOS
|
|
|
dependsOn: Windows
|
|
dependsOn: Windows
|