Changing phase to job and updating queue to pool

This commit is contained in:
Chris Patterson
2018-08-31 15:01:27 -04:00
parent f276b58ab6
commit 1c23aae6a7
4 changed files with 23 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
phases:
jobs:
- phase: GetReleaseVersion
- job: GetReleaseVersion
steps:
# This has to be done separately because VSTS inexplicably
# exits the script block after `npm install` completes.
@@ -16,8 +16,9 @@ phases:
- template: platforms/macos.yml
- template: platforms/linux.yml
- phase: Release
queue: Hosted # Need this for Python 2.7
- job: Release
pool:
vmImage: vs2017-win2016
dependsOn:
- GetReleaseVersion
@@ -29,6 +30,12 @@ phases:
ReleaseVersion: $[ dependencies.GetReleaseVersion.outputs['Version.ReleaseVersion'] ]
steps:
# Need this for Python 2.7
- task: UsePythonVersion@0
displayName: 'Use Python 2.7.x'
inputs:
versionSpec: 2.7.x
- task: NodeTool@0
inputs:
versionSpec: 8.9.3

View File

@@ -1,10 +1,10 @@
phases:
- phase: Linux
jobs:
- job: Linux
dependsOn: GetReleaseVersion
variables:
ReleaseVersion: $[ dependencies.GetReleaseVersion.outputs['Version.ReleaseVersion'] ]
queue:
name: Hosted Ubuntu 1604
pool:
vmImage: ubuntu-16.04
timeoutInMinutes: 180
steps:

View File

@@ -1,12 +1,12 @@
phases:
- phase: macOS
jobs:
- job: macOS
dependsOn: GetReleaseVersion
variables:
ReleaseVersion: $[ dependencies.GetReleaseVersion.outputs['Version.ReleaseVersion'] ]
IsReleaseBranch: $[ dependencies.GetReleaseVersion.outputs['Version.IsReleaseBranch'] ]
IsSignedZipBranch: $[ dependencies.GetReleaseVersion.outputs['Version.IsSignedZipBranch'] ]
queue:
name: Hosted macOS Preview
pool:
vmImage: macos-10.13
timeoutInMinutes: 180
steps:

View File

@@ -1,12 +1,12 @@
phases:
- phase: Windows
jobs:
- job: Windows
dependsOn: GetReleaseVersion
variables:
ReleaseVersion: $[ dependencies.GetReleaseVersion.outputs['Version.ReleaseVersion'] ]
IsReleaseBranch: $[ dependencies.GetReleaseVersion.outputs['Version.IsReleaseBranch'] ]
IsSignedZipBranch: $[ dependencies.GetReleaseVersion.outputs['Version.IsSignedZipBranch'] ]
queue:
name: Hosted
pool:
vmImage: vs2017-win2016
timeoutInMinutes: 180
parallel: 2
matrix: