From 82d4c26834f725f363b18feaaff20ab11f31a655 Mon Sep 17 00:00:00 2001 From: Ashu Tatake Date: Wed, 4 Dec 2019 13:09:59 -0800 Subject: [PATCH] Use common variables template --- Pipelines/Templates/Variables.yaml | 6 ++++++ Pipelines/azure-pipeline-release.yaml | 6 +----- Pipelines/azure-pipeline-validation.yaml | 4 +--- 3 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 Pipelines/Templates/Variables.yaml diff --git a/Pipelines/Templates/Variables.yaml b/Pipelines/Templates/Variables.yaml new file mode 100644 index 0000000..464ad99 --- /dev/null +++ b/Pipelines/Templates/Variables.yaml @@ -0,0 +1,6 @@ +variables: + ProductMajorMinor: 0.9 + SigningBranch: master + UnityVersion: 'Unity2019.1.10f1' + ProductVersion.Patch: $[counter(variables['ProductMajorMinor'], 0)] + ProductVersion: $(ProductMajorMinor).$(ProductVersion.Patch) \ No newline at end of file diff --git a/Pipelines/azure-pipeline-release.yaml b/Pipelines/azure-pipeline-release.yaml index 8c26e9e..ac99846 100644 --- a/Pipelines/azure-pipeline-release.yaml +++ b/Pipelines/azure-pipeline-release.yaml @@ -8,11 +8,7 @@ trigger: - develop variables: - ProductMajorMinor: 0.1 - SigningBranch: master - UnityVersion: 'Unity2019.1.10f1' - ProductVersion.Patch: $[counter(variables['ProductMajorMinor'], 0)] - ProductVersion: $(ProductMajorMinor).$(ProductVersion.Patch) +- template: Templates/Variables.yaml stages: - stage: Build_Source diff --git a/Pipelines/azure-pipeline-validation.yaml b/Pipelines/azure-pipeline-validation.yaml index 7b521f5..daa03ab 100644 --- a/Pipelines/azure-pipeline-validation.yaml +++ b/Pipelines/azure-pipeline-validation.yaml @@ -7,9 +7,7 @@ trigger: - develop variables: - ProductMajorMinor: 0.1 - ProductVersion.Patch: $[counter(variables['ProductMajorMinor'], 0)] - ProductVersion: $(ProductMajorMinor).$(ProductVersion.Patch) +- template: Templates/Variables.yaml stages: - stage: Build_Source