From 31486c325b64f31cb2b0803b9e855e3876f30c5b Mon Sep 17 00:00:00 2001 From: wenlianwang <74910699+wenlianwang@users.noreply.github.com> Date: Tue, 19 Jan 2021 23:38:29 +0000 Subject: [PATCH 01/16] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-1.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 azure-pipelines-1.yml diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml new file mode 100644 index 000000000..ac078ef24 --- /dev/null +++ b/azure-pipelines-1.yml @@ -0,0 +1,19 @@ +# Starter pipeline +# Start with a minimal pipeline that you can customize to build and deploy your code. +# Add steps that build, run tests, deploy, and more: +# https://aka.ms/yaml + +trigger: +- main + +pool: + vmImage: 'ubuntu-latest' + +steps: +- script: echo Hello, world! + displayName: 'Run a one-line script' + +- script: | + echo Add other tasks to build, test, and deploy your project. + echo See https://aka.ms/yaml + displayName: 'Run a multi-line script' From ecdc46bf5ac70cbd3c9de8fe0267809f1c4cf00d Mon Sep 17 00:00:00 2001 From: wenlianwang <74910699+wenlianwang@users.noreply.github.com> Date: Tue, 19 Jan 2021 23:42:17 +0000 Subject: [PATCH 02/16] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index ac078ef24..fd9f34c76 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -2,7 +2,10 @@ # Start with a minimal pipeline that you can customize to build and deploy your code. # Add steps that build, run tests, deploy, and more: # https://aka.ms/yaml - +resources: + pipelines: + - pipeline: Trigger + source: TriggerPipeline trigger: - main From fa8808327b6aca1b9b2298e72d5ac125079d31c4 Mon Sep 17 00:00:00 2001 From: wenlianwang <74910699+wenlianwang@users.noreply.github.com> Date: Tue, 19 Jan 2021 23:47:46 +0000 Subject: [PATCH 03/16] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index fd9f34c76..31d468b1a 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -8,6 +8,7 @@ resources: source: TriggerPipeline trigger: - main +- azure-pipelines-wens-test pool: vmImage: 'ubuntu-latest' From c426b0d77f93f48b380ff3385e861ce57d878a56 Mon Sep 17 00:00:00 2001 From: wenlianwang <74910699+wenlianwang@users.noreply.github.com> Date: Tue, 19 Jan 2021 23:50:49 +0000 Subject: [PATCH 04/16] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 31d468b1a..3d4fe6661 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -4,11 +4,12 @@ # https://aka.ms/yaml resources: pipelines: - - pipeline: Trigger - source: TriggerPipeline -trigger: -- main -- azure-pipelines-wens-test + - pipeline: Trigger + source: TriggerPipeline + trigger: + branches: + - main + - azure-pipelines-wens-test pool: vmImage: 'ubuntu-latest' From 641125b7401af40f4fd515bd49e70ff187a1b0ec Mon Sep 17 00:00:00 2001 From: wenlianwang <74910699+wenlianwang@users.noreply.github.com> Date: Tue, 19 Jan 2021 23:51:05 +0000 Subject: [PATCH 05/16] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 3d4fe6661..b55e66867 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -8,7 +8,6 @@ resources: source: TriggerPipeline trigger: branches: - - main - azure-pipelines-wens-test pool: From c64b5d5ab205e0d8d78f6edf14166910633672c8 Mon Sep 17 00:00:00 2001 From: wenlianwang <74910699+wenlianwang@users.noreply.github.com> Date: Tue, 19 Jan 2021 23:55:44 +0000 Subject: [PATCH 06/16] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index b55e66867..7442145c6 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -5,7 +5,7 @@ resources: pipelines: - pipeline: Trigger - source: TriggerPipeline + source: triggerPipeline trigger: branches: - azure-pipelines-wens-test From 04c59bd5e3864dd42a6857d35e1f6bff71b765fa Mon Sep 17 00:00:00 2001 From: wenlianwang <74910699+wenlianwang@users.noreply.github.com> Date: Wed, 20 Jan 2021 00:04:48 +0000 Subject: [PATCH 07/16] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 7442145c6..5643e69c6 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -4,7 +4,7 @@ # https://aka.ms/yaml resources: pipelines: - - pipeline: Trigger + - pipeline: triggerPipeline source: triggerPipeline trigger: branches: From d177c829634f16b485273d8d30eb2a7411a7ec17 Mon Sep 17 00:00:00 2001 From: wenlianwang <74910699+wenlianwang@users.noreply.github.com> Date: Wed, 20 Jan 2021 00:24:00 +0000 Subject: [PATCH 08/16] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 5643e69c6..657d4b7af 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -2,6 +2,10 @@ # Start with a minimal pipeline that you can customize to build and deploy your code. # Add steps that build, run tests, deploy, and more: # https://aka.ms/yaml + +pool: + vmImage: 'ubuntu-latest' + resources: pipelines: - pipeline: triggerPipeline @@ -10,9 +14,6 @@ resources: branches: - azure-pipelines-wens-test -pool: - vmImage: 'ubuntu-latest' - steps: - script: echo Hello, world! displayName: 'Run a one-line script' @@ -20,4 +21,4 @@ steps: - script: | echo Add other tasks to build, test, and deploy your project. echo See https://aka.ms/yaml - displayName: 'Run a multi-line script' + displayName: 'Run a multi-line script' \ No newline at end of file From cd2087f827f9f39f153ca3aa07d08fdf5d481dc2 Mon Sep 17 00:00:00 2001 From: wenlianwang <74910699+wenlianwang@users.noreply.github.com> Date: Wed, 20 Jan 2021 00:29:57 +0000 Subject: [PATCH 09/16] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 657d4b7af..426fd48c5 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -8,14 +8,14 @@ pool: resources: pipelines: - - pipeline: triggerPipeline + - pipeline: myTrigger source: triggerPipeline trigger: branches: - azure-pipelines-wens-test steps: -- script: echo Hello, world! +- script: echo triggered by source ${{resources.pipeline.myTrigger.pipelineName}} displayName: 'Run a one-line script' - script: | From 6901aa0a6f964b99abb592f7dbf0d6a1972d52bb Mon Sep 17 00:00:00 2001 From: wenlianwang <74910699+wenlianwang@users.noreply.github.com> Date: Wed, 20 Jan 2021 00:33:38 +0000 Subject: [PATCH 10/16] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 426fd48c5..ab409c7d7 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -15,7 +15,7 @@ resources: - azure-pipelines-wens-test steps: -- script: echo triggered by source ${{resources.pipeline.myTrigger.pipelineName}} +- script: echo triggered by source $(resources.pipeline.myTrigger.pipelineName) displayName: 'Run a one-line script' - script: | From d2fda960ed542bbad2ba984a3ada7c7c7798daec Mon Sep 17 00:00:00 2001 From: wenlianwang <74910699+wenlianwang@users.noreply.github.com> Date: Wed, 20 Jan 2021 00:43:58 +0000 Subject: [PATCH 11/16] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index ab409c7d7..8296917e8 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -10,9 +10,6 @@ resources: pipelines: - pipeline: myTrigger source: triggerPipeline - trigger: - branches: - - azure-pipelines-wens-test steps: - script: echo triggered by source $(resources.pipeline.myTrigger.pipelineName) From e075d221af2aa68df4a43875d21fa251352ac5dc Mon Sep 17 00:00:00 2001 From: wenlianwang <74910699+wenlianwang@users.noreply.github.com> Date: Wed, 20 Jan 2021 09:30:34 +0000 Subject: [PATCH 12/16] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 8296917e8..3dcf056e2 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -10,7 +10,10 @@ resources: pipelines: - pipeline: myTrigger source: triggerPipeline - + trigger: + branches: + - master +trigger: none steps: - script: echo triggered by source $(resources.pipeline.myTrigger.pipelineName) displayName: 'Run a one-line script' From 9368a2f856c693a16c0561b1f6cb92f04f8eaf32 Mon Sep 17 00:00:00 2001 From: wenlianwang <74910699+wenlianwang@users.noreply.github.com> Date: Wed, 20 Jan 2021 09:45:47 +0000 Subject: [PATCH 13/16] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 3dcf056e2..190664666 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -10,15 +10,32 @@ resources: pipelines: - pipeline: myTrigger source: triggerPipeline - trigger: + trigger: branches: - master + trigger: none + +pool: + vmImage: 'ubuntu-latest' + steps: -- script: echo triggered by source $(resources.pipeline.myTrigger.pipelineName) - displayName: 'Run a one-line script' +- script: 'env | sort' + displayName: "echo Environment Variables" +- task: DownloadBuildArtifacts@0 + displayName: 'Download variables' + inputs: + buildType: 'specific' + project: '' + pipeline: '229' + buildVersionToDownload: 'latest' + downloadType: 'specific' + downloadPath: '$(System.ArtifactsDirectory)' -- script: | - echo Add other tasks to build, test, and deploy your project. - echo See https://aka.ms/yaml - displayName: 'Run a multi-line script' \ No newline at end of file +- script: cat $(System.ArtifactsDirectory)/variables/pipeline.env + displayName: 'Restore Enviornment Variables' +- script: echo "FOO:$(FOO)" + displayName: 'echo envrionemtn variables' + +- script: echo triggered by source $(resources.pipeline.myTrigger.pipelineName) + displayName: 'Run a one-line script' \ No newline at end of file From 5551a4e39ff0bc1fb0848719f355c06c727ad96a Mon Sep 17 00:00:00 2001 From: wenlianwang <74910699+wenlianwang@users.noreply.github.com> Date: Wed, 20 Jan 2021 09:46:49 +0000 Subject: [PATCH 14/16] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 190664666..bae1b052b 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -3,9 +3,6 @@ # Add steps that build, run tests, deploy, and more: # https://aka.ms/yaml -pool: - vmImage: 'ubuntu-latest' - resources: pipelines: - pipeline: myTrigger From ec9a48716605dd4c0490f24ad2a84a4f68264423 Mon Sep 17 00:00:00 2001 From: wenlianwang <74910699+wenlianwang@users.noreply.github.com> Date: Wed, 20 Jan 2021 10:01:51 +0000 Subject: [PATCH 15/16] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index bae1b052b..f060ef23e 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -23,7 +23,7 @@ steps: displayName: 'Download variables' inputs: buildType: 'specific' - project: '' + project: 'wenlianw' pipeline: '229' buildVersionToDownload: 'latest' downloadType: 'specific' From 9d520ae7b2a7d1a9d965d9b45ae4462e2303ce9c Mon Sep 17 00:00:00 2001 From: wenlianwang <74910699+wenlianwang@users.noreply.github.com> Date: Wed, 20 Jan 2021 10:09:12 +0000 Subject: [PATCH 16/16] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index f060ef23e..98b53aef2 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -24,7 +24,7 @@ steps: inputs: buildType: 'specific' project: 'wenlianw' - pipeline: '229' + pipeline: 'triggerPipeline' buildVersionToDownload: 'latest' downloadType: 'specific' downloadPath: '$(System.ArtifactsDirectory)'