Skip to content

Commit

Permalink
JOB テンプレートを導入
Browse files Browse the repository at this point in the history
  • Loading branch information
m-tmatma committed Apr 27, 2019
1 parent e33898d commit 1b92072
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 25 deletions.
34 changes: 31 additions & 3 deletions azure-pipelines-template.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
steps:
- script: echo $(BuildPlatform)
- script: echo $(Configuration)
# see https://docs.microsoft.com/en-us/azure/devops/pipelines/process/templates?view=azure-devops&viewFallbackFrom=vsts#passing-parameters
parameters:
name: ''
vmImage: ''
displayName: ''

jobs:
- job: ${{ parameters.name }}
displayName: ${{ parameters.displayName }}
pool:
vmImage: ${{ parameters.vmImage }}

strategy:
maxParallel: 10
matrix:
Win32_Release:
BuildPlatform: 'Win32'
Configuration: 'Release'
Win32_Debug:
BuildPlatform: 'Win32'
Configuration: 'Debug'
Win64_Release:
BuildPlatform: 'x64'
Configuration: 'Release'
Win64_Debug:
BuildPlatform: 'x64'
Configuration: 'Debug'

steps:
- script: echo $(BuildPlatform)
- script: echo $(Configuration)
26 changes: 4 additions & 22 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,8 @@ pr:
- feature/*

jobs:
- job: windows
displayName: 'Windows'
pool:
- template: azure-pipelines-template.yml
parameters:
name: VS2017
vmImage: 'VS2017-Win2016'

strategy:
maxParallel: 10
matrix:
Win32_Release:
BuildPlatform: 'Win32'
Configuration: 'Release'
Win32_Debug:
BuildPlatform: 'Win32'
Configuration: 'Debug'
Win64_Release:
BuildPlatform: 'x64'
Configuration: 'Release'
Win64_Debug:
BuildPlatform: 'x64'
Configuration: 'Debug'

steps:
- template: azure-pipelines-template.yml
displayName: VS2017

0 comments on commit 1b92072

Please sign in to comment.