From 562791dd2b8653b89b604fc8a61944e7a34af894 Mon Sep 17 00:00:00 2001 From: Brett Logan Date: Fri, 17 Jan 2020 15:38:31 -0500 Subject: [PATCH] Add support for versioning NodeJS (#105) Signed-off-by: Brett Logan --- ci/azure-pipelines.yml | 8 ++++++-- ci/install-deps.yml | 6 +++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ci/azure-pipelines.yml b/ci/azure-pipelines.yml index 9c57962f..def2c1bc 100644 --- a/ci/azure-pipelines.yml +++ b/ci/azure-pipelines.yml @@ -6,6 +6,9 @@ trigger: - master - release-1.4 +variables: + NODE_VER: '10.x' + jobs: - job: fabcar_go displayName: FabCar (Go) @@ -17,6 +20,7 @@ jobs: - template: install-deps.yml - template: install-fabric.yml - template: fabcar-go.yml + - job: fabcar_java displayName: FabCar (Java) pool: @@ -27,6 +31,7 @@ jobs: - template: install-deps.yml - template: install-fabric.yml - template: fabcar-java.yml + - job: fabcar_javascript displayName: FabCar (JavaScript) pool: @@ -37,6 +42,7 @@ jobs: - template: install-deps.yml - template: install-fabric.yml - template: fabcar-javascript.yml + - job: fabcar_typescript displayName: FabCar (TypeScript) pool: @@ -47,5 +53,3 @@ jobs: - template: install-deps.yml - template: install-fabric.yml - template: fabcar-typescript.yml - - diff --git a/ci/install-deps.yml b/ci/install-deps.yml index a414861f..45e5fa55 100644 --- a/ci/install-deps.yml +++ b/ci/install-deps.yml @@ -4,4 +4,8 @@ steps: - script: sudo sh -c "curl https://raw.githubusercontent.com/kadwanev/retry/master/retry -o /usr/local/bin/retry && chmod +x /usr/local/bin/retry" - displayName: Install retry CLI \ No newline at end of file + displayName: Install retry CLI + - task: NodeTool@0 + inputs: + versionSpec: $(NODE_VER) + displayName: 'Install Node.js'