Make a VSTS builds use a template
This commit is contained in:
parent
a431f8efa1
commit
e28e851ed8
|
|
@ -2,46 +2,12 @@ trigger:
|
||||||
- master
|
- master
|
||||||
- release/*
|
- release/*
|
||||||
|
|
||||||
# See https://github.com/aspnet/BuildTools
|
|
||||||
resources:
|
resources:
|
||||||
repositories:
|
repositories:
|
||||||
- repository: buildtools
|
- repository: buildtools
|
||||||
type: github
|
type: git
|
||||||
endpoint: DotNet-Bot GitHub Connection
|
name: aspnet-BuildTools
|
||||||
name: aspnet/BuildTools
|
|
||||||
ref: refs/heads/release/2.2
|
ref: refs/heads/release/2.2
|
||||||
|
|
||||||
phases:
|
phases:
|
||||||
- template: .vsts-pipelines/templates/phases/default-build.yml@buildtools
|
- template: ../templates/project-ci.yml
|
||||||
parameters:
|
|
||||||
agentOs: Windows
|
|
||||||
beforeBuild:
|
|
||||||
- task: NodeTool@0
|
|
||||||
displayName: Use Node 8.x
|
|
||||||
inputs:
|
|
||||||
versionSpec: 8.x
|
|
||||||
|
|
||||||
- template: .vsts-pipelines/templates/phases/default-build.yml@buildtools
|
|
||||||
parameters:
|
|
||||||
agentOs: macOS
|
|
||||||
beforeBuild:
|
|
||||||
- task: NodeTool@0
|
|
||||||
displayName: Use Node 8.x
|
|
||||||
inputs:
|
|
||||||
versionSpec: 8.x
|
|
||||||
- script: ./run.sh install-tools; $(Agent.WorkFolder)/.dotnet/dotnet dev-certs https
|
|
||||||
displayName: install certs
|
|
||||||
env:
|
|
||||||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
|
|
||||||
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
|
||||||
|
|
||||||
- template: .vsts-pipelines/templates/phases/default-build.yml@buildtools
|
|
||||||
parameters:
|
|
||||||
agentOs: Linux
|
|
||||||
beforeBuild:
|
|
||||||
- task: NodeTool@0
|
|
||||||
displayName: Use Node 8.x
|
|
||||||
inputs:
|
|
||||||
versionSpec: 8.x
|
|
||||||
- script: ./run.sh install-tools; $(Agent.WorkFolder)/.dotnet/dotnet dev-certs https
|
|
||||||
displayName: install certs
|
|
||||||
|
|
|
||||||
|
|
@ -12,36 +12,4 @@ resources:
|
||||||
ref: refs/heads/release/2.2
|
ref: refs/heads/release/2.2
|
||||||
|
|
||||||
phases:
|
phases:
|
||||||
- template: .vsts-pipelines/templates/phases/default-build.yml@buildtools
|
- template: ../templates/project-ci.yml
|
||||||
parameters:
|
|
||||||
agentOs: Windows
|
|
||||||
beforeBuild:
|
|
||||||
- task: NodeTool@0
|
|
||||||
displayName: Use Node 8.x
|
|
||||||
inputs:
|
|
||||||
versionSpec: 8.x
|
|
||||||
|
|
||||||
- template: .vsts-pipelines/templates/phases/default-build.yml@buildtools
|
|
||||||
parameters:
|
|
||||||
agentOs: macOS
|
|
||||||
beforeBuild:
|
|
||||||
- task: NodeTool@0
|
|
||||||
displayName: Use Node 8.x
|
|
||||||
inputs:
|
|
||||||
versionSpec: 8.x
|
|
||||||
- script: ./run.sh install-tools; $(Agent.WorkFolder)/.dotnet/dotnet dev-certs https
|
|
||||||
displayName: install certs
|
|
||||||
env:
|
|
||||||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
|
|
||||||
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
|
||||||
|
|
||||||
- template: .vsts-pipelines/templates/phases/default-build.yml@buildtools
|
|
||||||
parameters:
|
|
||||||
agentOs: Linux
|
|
||||||
beforeBuild:
|
|
||||||
- task: NodeTool@0
|
|
||||||
displayName: Use Node 8.x
|
|
||||||
inputs:
|
|
||||||
versionSpec: 8.x
|
|
||||||
- script: ./run.sh install-tools; $(Agent.WorkFolder)/.dotnet/dotnet dev-certs https
|
|
||||||
displayName: install certs
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,36 @@
|
||||||
|
# See https://github.com/aspnet/BuildTools
|
||||||
|
|
||||||
|
phases:
|
||||||
|
- template: .vsts-pipelines/templates/phases/default-build.yml@buildtools
|
||||||
|
parameters:
|
||||||
|
agentOs: Windows
|
||||||
|
beforeBuild:
|
||||||
|
- task: NodeTool@0
|
||||||
|
displayName: Use Node 8.x
|
||||||
|
inputs:
|
||||||
|
versionSpec: 8.x
|
||||||
|
|
||||||
|
- template: .vsts-pipelines/templates/phases/default-build.yml@buildtools
|
||||||
|
parameters:
|
||||||
|
agentOs: macOS
|
||||||
|
beforeBuild:
|
||||||
|
- task: NodeTool@0
|
||||||
|
displayName: Use Node 8.x
|
||||||
|
inputs:
|
||||||
|
versionSpec: 8.x
|
||||||
|
- script: ./run.sh install-tools; $(Agent.WorkFolder)/.dotnet/dotnet dev-certs https
|
||||||
|
displayName: install certs
|
||||||
|
env:
|
||||||
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
|
||||||
|
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
||||||
|
|
||||||
|
- template: .vsts-pipelines/templates/phases/default-build.yml@buildtools
|
||||||
|
parameters:
|
||||||
|
agentOs: Linux
|
||||||
|
beforeBuild:
|
||||||
|
- task: NodeTool@0
|
||||||
|
displayName: Use Node 8.x
|
||||||
|
inputs:
|
||||||
|
versionSpec: 8.x
|
||||||
|
- script: ./run.sh install-tools; $(Agent.WorkFolder)/.dotnet/dotnet dev-certs https
|
||||||
|
displayName: install certs
|
||||||
Loading…
Reference in New Issue