From 56a71ba2e95086842cb733d7e234ff2a3de07569 Mon Sep 17 00:00:00 2001 From: James Henry Date: Mon, 21 Jan 2019 19:20:38 -0500 Subject: [PATCH] build: try example canary conditional job --- azure-pipelines.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a34eaea0062d..11634775f519 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -64,3 +64,20 @@ jobs: - script: | yarn test displayName: 'Run unit tests' + + - job: publish_canary_version + displayName: Publish the latest code as a canary version + dependsOn: + - primary_code_validation_and_tests + - unit_tests_on_other_node_versions + condition: and(succeeded(), eq(variables['Build.SourceBranchName'], 'master'), ne(variables['Build.Reason'], 'PullRequest')) + pool: + vmImage: 'Ubuntu-16.04' + steps: + - task: NodeTool@0 + inputs: + versionSpec: 11 + displayName: 'Install Node.js 11' + + - script: | + echo "canary"