Skip to content

Commit

Permalink
Use valid stage and job names
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetseckin committed Nov 16, 2019
1 parent 4f2418f commit 6086378
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion pipelines/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,22 @@ trigger:
stages:
- template: templates/stages/build.yml
parameters:
name: 'win10_x64'
runtimeIdentifier: 'win10-x64'
vmImage: 'windows-latest'
- template: templates/stages/build.yml
parameters:
name: 'linux_x64'
runtimeIdentifier: 'linux-x64'
vmImage: 'ubuntu-latest'
- template: templates/stages/build.yml
parameters:
name: 'osx_x64'
runtimeIdentifier: 'osx-x64'
vmImage: 'ubuntu-latest'
- stage: 'Release'
jobs:
- job: 'Create GitHub release'
- job: 'create-github-release'
steps:
- download: current
displayName: 'Download all artifacts'
Expand Down
5 changes: 3 additions & 2 deletions pipelines/templates/stages/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
parameters:
name: ''
runtimeIdentifier: 'win10-x64'
vmImage: 'windows-latest'
dependsOn: []

stages:
- stage: '${{ parameters.runtimeIdentifier }}'
- stage: '${{ parameters.name }}'

variables:
buildConfiguration: 'Release'
Expand All @@ -15,7 +16,7 @@ stages:

dependsOn: ${{ parameters.dependsOn }}
jobs:
- job: 'Publish for ${{ parameters.runtimeIdentifier }}'
- job: 'publish_${{ parameters.name }}'
pool:
vmImage: ${{ parameters.vmImage }}
steps:
Expand Down

0 comments on commit 6086378

Please sign in to comment.