Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '.azure/pipelines/jobs/default-build.yml')
-rw-r--r--.azure/pipelines/jobs/default-build.yml43
1 files changed, 32 insertions, 11 deletions
diff --git a/.azure/pipelines/jobs/default-build.yml b/.azure/pipelines/jobs/default-build.yml
index 2b8c2f8c6f..30739aef4b 100644
--- a/.azure/pipelines/jobs/default-build.yml
+++ b/.azure/pipelines/jobs/default-build.yml
@@ -8,7 +8,7 @@
# poolName: string
# The name of the Azure DevOps agent pool to use.
# agentOs: string
-# Used in templates to define variables which are OS specific. Typically from the set { Windows, Linux, macOS }
+# Used in templates to define variables which are OS specific. Typically from the set { Windows, Linux, MacOS }
# buildArgs: string
# Additional arguments to pass to the build.sh/cmd script.
# Note: -ci is always passed
@@ -41,7 +41,6 @@
parameters:
agentOs: 'Windows'
poolName: ''
- buildArgs: ''
configuration: 'Release'
beforeBuild: []
afterBuild: []
@@ -72,7 +71,7 @@ jobs:
pool:
${{ if ne(parameters.poolName, '') }}:
name: ${{ parameters.poolName }}
- ${{ if and(eq(parameters.poolName, ''), eq(parameters.agentOs, 'macOS')) }}:
+ ${{ if and(eq(parameters.poolName, ''), eq(parameters.agentOs, 'MacOS')) }}:
vmImage: macOS-10.14
${{ if and(eq(parameters.poolName, ''), eq(parameters.agentOs, 'Linux')) }}:
vmImage: ubuntu-16.04
@@ -85,13 +84,10 @@ jobs:
queue: BuildPool.Server.Amd64.VS2017
variables:
AgentOsName: ${{ parameters.agentOs }}
- ASPNETCORE_TEST_LOG_MAXPATH: "200" # Keep test log file name length low enough for artifact zipping
- DOTNET_HOME: $(Agent.BuildDirectory)/.dotnet
BuildScript: ${{ parameters.buildScript }}
- BuildScriptArgs: ${{ parameters.buildArgs }}
BuildConfiguration: ${{ parameters.configuration }}
BuildDirectory: ${{ parameters.buildDirectory }}
- TeamName: AspNetCore
+ BinlogArg: /bl:artifacts/logs/${{ parameters.agentOs }}.binlog
${{ if eq(parameters.agentOs, 'Windows') }}:
JAVA_HOME: $(Agent.BuildDirectory)\.tools\jdk
${{ if or(ne(parameters.codeSign, 'true'), ne(variables['System.TeamProject'], 'internal'), in(variables['Build.Reason'], 'PullRequest')) }}:
@@ -99,6 +95,11 @@ jobs:
${{ if and(eq(parameters.codeSign, 'true'), eq(variables['System.TeamProject'], 'internal'), notin(variables['Build.Reason'], 'PullRequest')) }}:
_SignType: real
${{ insert }}: ${{ parameters.variables }}
+ ${{ if eq(variables['System.TeamProject'], 'public') }}:
+ PB_PackageVersionPropsUrl: ''
+ PB_AssetRootUrl: ''
+ PB_RestoreSource: ''
+ PB_PublishBlobFeedKey: ''
steps:
- checkout: self
clean: true
@@ -116,7 +117,7 @@ jobs:
command: custom
arguments: 'locals all -clear'
- ${{ if and(eq(variables['System.TeamProject'], 'internal'), eq(parameters.agentOs, 'Windows'), eq(parameters.codeSign, 'true')) }}:
- - task: MicroBuildSigningPlugin@1
+ - task: MicroBuildSigningPlugin@2
displayName: Install MicroBuild Signing plugin
condition: and(succeeded(), in(variables['_SignType'], 'test', 'real'))
inputs:
@@ -125,13 +126,33 @@ jobs:
feedSource: https://dnceng.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json
- ${{ parameters.beforeBuild }}
- ${{ if eq(parameters.agentOs, 'Windows') }}:
- - script: .\$(BuildDirectory)\build.cmd -ci /p:SignType=$(_SignType) /p:Configuration=$(BuildConfiguration) $(BuildScriptArgs)
+ - script: .\$(BuildDirectory)\build.cmd
+ -ci
+ /p:SignType=$(_SignType)
+ /p:Configuration=$(BuildConfiguration)
+ /p:DisableSignCheck=true
+ $(BuildScriptArgs)
+ $(BinlogArg)
+ env:
+ PB_PackageVersionPropsUrl: $(PB_PackageVersionPropsUrl)
+ PB_AssetRootUrl: $(PB_AssetRootUrl)
+ PB_RestoreSource: $(PB_RestoreSource)
+ PB_PublishBlobFeedKey: $(PB_PublishBlobFeedKey)
displayName: Run build.cmd
- powershell: eng\scripts\KillProcesses.ps1
displayName: Kill processes
condition: always()
- ${{ if ne(parameters.agentOs, 'Windows') }}:
- - script: ./$(BuildDirectory)/build.sh -ci -p:Configuration=$(BuildConfiguration) $(BuildScriptArgs)
+ - script: ./$(BuildDirectory)/build.sh
+ -ci
+ -p:Configuration=$(BuildConfiguration)
+ $(BuildScriptArgs)
+ $(BinlogArg)
+ env:
+ PB_PackageVersionPropsUrl: $(PB_PackageVersionPropsUrl)
+ PB_AssetRootUrl: $(PB_AssetRootUrl)
+ PB_RestoreSource: $(PB_RestoreSource)
+ PB_PublishBlobFeedKey: $(PB_PublishBlobFeedKey)
displayName: Run build.sh
- script: eng/scripts/KillProcesses.sh
displayName: Kill processes
@@ -165,4 +186,4 @@ jobs:
- ${{ if and(eq(variables['System.TeamProject'], 'internal'), eq(parameters.agentOs, 'Windows')) }}:
- task: MicroBuildCleanup@1
displayName: Cleanup MicroBuild tasks
- condition: always()
+ condition: always() \ No newline at end of file