Use stages in Azure Pipelines

This commit is contained in:
Paulchen Panther 2020-04-17 18:15:33 +02:00
parent 10f11c2d89
commit 9ca197ea78

View File

@ -1,10 +1,14 @@
jobs:
stages:
- stage: Build
displayName: Build packages
######################
###### Linux #########
######################
jobs:
- job: Linux
######################
###### Linux #########
######################
- job: Linux
timeoutInMinutes: 120
pool:
vmImage: 'ubuntu-16.04'
@ -57,11 +61,11 @@ jobs:
condition: and(succeeded(), ne(variables['system.pullrequest.isfork'], true), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
displayName: 'Publish artifacts'
######################
###### macOS #########
######################
######################
###### macOS #########
######################
- job: macOS
- job: macOS
timeoutInMinutes: 120
pool:
vmImage: 'macOS-10.14'
@ -99,12 +103,15 @@ jobs:
###### Publish Releases ########
################################
- job: PublishReleases
timeoutInMinutes: 120
- stage: Publish
displayName: Publish Releases
dependsOn:
- Linux
- macOS
condition: and(succeeded(), ne(variables['system.pullrequest.isfork'], true), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
- Build
condition: and(succeeded('Build'), ne(variables['system.pullrequest.isfork'], true), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
jobs:
- job: PublishReleases
timeoutInMinutes: 120
pool:
vmImage: ubuntu-16.04