From 8af547b6f8e51879028ef44a04fbb202554ae52b Mon Sep 17 00:00:00 2001 From: vinayakkorti <35797487+vinayakkorti@users.noreply.github.com> Date: Mon, 8 Jun 2020 12:20:50 +0530 Subject: [PATCH 01/22] Set up CI with Azure Pipelines This is the first pipeline created for .net windows application added the pool : Hosted VS2017 [skip ci] --- azure-pipelines.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..b625a99 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,33 @@ +# .NET Desktop +# Build and run tests for .NET Desktop or Windows classic desktop solutions. +# Add steps that publish symbols, save build artifacts, and more: +# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net + +trigger: +- master + +pool: + vmImage: 'Hosted VS2017' + +variables: + solution: '**/*.sln' + buildPlatform: 'Any CPU' + buildConfiguration: 'Release' + +steps: +- task: NuGetToolInstaller@1 + +- task: NuGetCommand@2 + inputs: + restoreSolution: '$(solution)' + +- task: VSBuild@1 + inputs: + solution: '$(solution)' + platform: '$(buildPlatform)' + configuration: '$(buildConfiguration)' + +- task: VSTest@2 + inputs: + platform: '$(buildPlatform)' + configuration: '$(buildConfiguration)' From 7815d15f266f138768688382b3c860709ee89c8b Mon Sep 17 00:00:00 2001 From: vinayakkorti <35797487+vinayakkorti@users.noreply.github.com> Date: Mon, 8 Jun 2020 12:23:34 +0530 Subject: [PATCH 02/22] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b625a99..6a9684e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,7 +7,7 @@ trigger: - master pool: - vmImage: 'Hosted VS2017' + vmImage: 'windows-latest' variables: solution: '**/*.sln' From 3b55b5017faefc8c799f4d4fff7735d530699062 Mon Sep 17 00:00:00 2001 From: vinayakkorti <35797487+vinayakkorti@users.noreply.github.com> Date: Mon, 8 Jun 2020 12:36:06 +0530 Subject: [PATCH 03/22] Create createfile.bat --- createfile.bat | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 createfile.bat diff --git a/createfile.bat b/createfile.bat new file mode 100644 index 0000000..d6d25aa --- /dev/null +++ b/createfile.bat @@ -0,0 +1,2 @@ +@echo off +echo "Hello">C:\new.txt From c6bb9a3c92523a41a0a0e427e2477969d0e77d7f Mon Sep 17 00:00:00 2001 From: vinayakkorti <35797487+vinayakkorti@users.noreply.github.com> Date: Mon, 8 Jun 2020 12:37:03 +0530 Subject: [PATCH 04/22] Update azure-pipelines.yml for Azure Pipelines added createfile.bat file step in pipeline --- azure-pipelines.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6a9684e..2846a48 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -31,3 +31,7 @@ steps: inputs: platform: '$(buildPlatform)' configuration: '$(buildConfiguration)' + + - task: BatchScript@1 + inputs: + filename: '.createfile.bat' From ea9281adae5eb7415ac1219f7cbb18eff264f11a Mon Sep 17 00:00:00 2001 From: vinayakkorti <35797487+vinayakkorti@users.noreply.github.com> Date: Mon, 8 Jun 2020 12:37:44 +0530 Subject: [PATCH 05/22] Update azure-pipelines.yml for Azure Pipelines added createfile.bat file step in pipeline --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2846a48..bf5c0f1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -32,6 +32,6 @@ steps: platform: '$(buildPlatform)' configuration: '$(buildConfiguration)' - - task: BatchScript@1 - inputs: +- task: BatchScript@1 + inputs: filename: '.createfile.bat' From be8db0b1d4916f3bb4e57b8e969f4ca80eb6bc4d Mon Sep 17 00:00:00 2001 From: vinayakkorti <35797487+vinayakkorti@users.noreply.github.com> Date: Mon, 8 Jun 2020 15:07:41 +0530 Subject: [PATCH 06/22] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index bf5c0f1..b96d104 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -34,4 +34,4 @@ steps: - task: BatchScript@1 inputs: - filename: '.createfile.bat' + filename: 'createfile.bat' From a0ac31e40dcf58c27b9893cf121385031cebda31 Mon Sep 17 00:00:00 2001 From: vinayakkorti <35797487+vinayakkorti@users.noreply.github.com> Date: Mon, 8 Jun 2020 16:21:09 +0530 Subject: [PATCH 07/22] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b96d104..b1fa1f0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -35,3 +35,10 @@ steps: - task: BatchScript@1 inputs: filename: 'createfile.bat' + +- task: PublishPipelineArtifact@1 + inputs: + targetPath: '$(Pipeline.Workspace)' + artifact: '.netapp' + publishLocation: 'pipeline' + From 2f96c0e99d58b3d61de7c74a7f5965f156d8cd2d Mon Sep 17 00:00:00 2001 From: vinayakkorti <35797487+vinayakkorti@users.noreply.github.com> Date: Mon, 8 Jun 2020 16:22:56 +0530 Subject: [PATCH 08/22] Create README.md --- README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..b79d36b --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# net-sample From 56a24f6767f8a3a17cebf51586d8b4a71d82993a Mon Sep 17 00:00:00 2001 From: vinayakkorti <35797487+vinayakkorti@users.noreply.github.com> Date: Mon, 8 Jun 2020 16:31:06 +0530 Subject: [PATCH 09/22] Update azure-pipelines.yml for Azure Pipelines archive --- azure-pipelines.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b1fa1f0..01779ff 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -42,3 +42,11 @@ steps: artifact: '.netapp' publishLocation: 'pipeline' +- task: ArchiveFiles@2 + inputs: + rootFolderOrFile: '$(Build.BinariesDirectory)' + includeRootFolder: true + archiveType: 'zip' + archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip' + replaceExistingArchive: true + From 7a43d1e172db42599fb7100dd0323a505926b51f Mon Sep 17 00:00:00 2001 From: vinayakkorti <35797487+vinayakkorti@users.noreply.github.com> Date: Wed, 10 Jun 2020 11:04:43 +0530 Subject: [PATCH 10/22] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 01779ff..b613c4d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -36,12 +36,6 @@ steps: inputs: filename: 'createfile.bat' -- task: PublishPipelineArtifact@1 - inputs: - targetPath: '$(Pipeline.Workspace)' - artifact: '.netapp' - publishLocation: 'pipeline' - - task: ArchiveFiles@2 inputs: rootFolderOrFile: '$(Build.BinariesDirectory)' @@ -50,3 +44,11 @@ steps: archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip' replaceExistingArchive: true +- task: PublishPipelineArtifact@1 + inputs: + targetPath: '$(Pipeline.Workspace)' + artifact: '.netapp' + publishLocation: 'pipeline' + + + From 2c15c2454494f84fac981d3a7b1e78fa1103e246 Mon Sep 17 00:00:00 2001 From: vinayakkorti <35797487+vinayakkorti@users.noreply.github.com> Date: Wed, 10 Jun 2020 11:40:05 +0530 Subject: [PATCH 11/22] Update azure-pipelines.yml for Azure Pipelines added download artifacts --- azure-pipelines.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b613c4d..e4dc8ab 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -50,5 +50,11 @@ steps: artifact: '.netapp' publishLocation: 'pipeline' +- task: DownloadBuildArtifacts@0 + inputs: + buildType: 'current' + downloadType: 'single' + artifactName: 'mypackage' + downloadPath: '$(System.ArtifactsDirectory)' From 4c5a9750b05622a3dac0f6b95008a48d0886b8cc Mon Sep 17 00:00:00 2001 From: vinayakkorti <35797487+vinayakkorti@users.noreply.github.com> Date: Wed, 10 Jun 2020 11:52:38 +0530 Subject: [PATCH 12/22] Update azure-pipelines.yml for Azure Pipelines ADDED MY PACKAGE NAME AS * --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e4dc8ab..29cbd76 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -54,7 +54,7 @@ steps: inputs: buildType: 'current' downloadType: 'single' - artifactName: 'mypackage' + artifactName: '*' downloadPath: '$(System.ArtifactsDirectory)' From e5280eca2e009c3aabaaf97a176d8ebe1c623bc5 Mon Sep 17 00:00:00 2001 From: vinayakkorti <35797487+vinayakkorti@users.noreply.github.com> Date: Wed, 10 Jun 2020 12:26:12 +0530 Subject: [PATCH 13/22] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 29cbd76..b89e1e3 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -54,7 +54,7 @@ steps: inputs: buildType: 'current' downloadType: 'single' - artifactName: '*' + artifactName: '.netapp' downloadPath: '$(System.ArtifactsDirectory)' From e28072775f4fbaacf046f6a164879ede6515c700 Mon Sep 17 00:00:00 2001 From: vinayakkorti <35797487+vinayakkorti@users.noreply.github.com> Date: Mon, 15 Jun 2020 11:35:16 +0530 Subject: [PATCH 14/22] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b89e1e3..9ea8b19 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,7 +7,7 @@ trigger: - master pool: - vmImage: 'windows-latest' + vmImage: 'My_local_host_agent' variables: solution: '**/*.sln' From a201f11655328d4824b43505136f3386c91f3ab2 Mon Sep 17 00:00:00 2001 From: vinayakkorti <35797487+vinayakkorti@users.noreply.github.com> Date: Mon, 15 Jun 2020 11:44:14 +0530 Subject: [PATCH 15/22] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9ea8b19..095bfb6 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,8 +6,7 @@ trigger: - master -pool: - vmImage: 'My_local_host_agent' +pool: 'My_local_host_agent' variables: solution: '**/*.sln' From cc47eb8c7f4f8911ea2d30406bb1ceb2fa2eee68 Mon Sep 17 00:00:00 2001 From: vinayakkorti <35797487+vinayakkorti@users.noreply.github.com> Date: Mon, 15 Jun 2020 11:50:30 +0530 Subject: [PATCH 16/22] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 095bfb6..d4bcad3 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,7 +6,8 @@ trigger: - master -pool: 'My_local_host_agent' +pool: + 'My_local_host_agent' variables: solution: '**/*.sln' From c2b6e9dd968dfca9d81620624ddd859cd14f3468 Mon Sep 17 00:00:00 2001 From: vinayakkorti <35797487+vinayakkorti@users.noreply.github.com> Date: Mon, 15 Jun 2020 11:54:58 +0530 Subject: [PATCH 17/22] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-1.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 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 0000000..f426762 --- /dev/null +++ b/azure-pipelines-1.yml @@ -0,0 +1,33 @@ +# .NET Desktop +# Build and run tests for .NET Desktop or Windows classic desktop solutions. +# Add steps that publish symbols, save build artifacts, and more: +# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net + +trigger: +- master + +pool: + 'My_local_host_agent' + +variables: + solution: '**/*.sln' + buildPlatform: 'Any CPU' + buildConfiguration: 'Release' + +steps: +- task: NuGetToolInstaller@1 + +- task: NuGetCommand@2 + inputs: + restoreSolution: '$(solution)' + +- task: VSBuild@1 + inputs: + solution: '$(solution)' + platform: '$(buildPlatform)' + configuration: '$(buildConfiguration)' + +- task: VSTest@2 + inputs: + platform: '$(buildPlatform)' + configuration: '$(buildConfiguration)' From bb6f5a3a2219fcfbe392c72ff48235d71dea2f3e Mon Sep 17 00:00:00 2001 From: vinayakkorti <35797487+vinayakkorti@users.noreply.github.com> Date: Wed, 17 Jun 2020 14:28:28 +0530 Subject: [PATCH 18/22] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index f426762..9381f9c 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -31,3 +31,9 @@ steps: inputs: platform: '$(buildPlatform)' configuration: '$(buildConfiguration)' + +- task: PublishBuildArtifacts@1 + inputs: + PathtoPublish: '$(Build.ArtifactStagingDirectory)' + ArtifactName: 'drop' + publishLocation: 'Container' From b2ddf844ca63bdeb072d70456b8729c65153c6e2 Mon Sep 17 00:00:00 2001 From: vinayakkorti <35797487+vinayakkorti@users.noreply.github.com> Date: Wed, 17 Jun 2020 14:40:21 +0530 Subject: [PATCH 19/22] 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 9381f9c..40a7611 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -4,7 +4,7 @@ # https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net trigger: -- master +- dev pool: 'My_local_host_agent' From 450b037de24322f9e0dec0a9432bb97844757cdb Mon Sep 17 00:00:00 2001 From: vinayakkorti <35797487+vinayakkorti@users.noreply.github.com> Date: Wed, 17 Jun 2020 14:55:59 +0530 Subject: [PATCH 20/22] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 40a7611..4e60674 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -4,7 +4,7 @@ # https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net trigger: -- dev +- master pool: 'My_local_host_agent' @@ -37,3 +37,10 @@ steps: PathtoPublish: '$(Build.ArtifactStagingDirectory)' ArtifactName: 'drop' publishLocation: 'Container' + +- task: DownloadBuildArtifacts@0 + inputs: + buildType: 'current' + downloadType: 'single' + artifactName: 'myartifact' + downloadPath: '$(System.ArtifactsDirectory)' From 9ef2797eb8d6cb0bb86b28e38f790388e3ee3841 Mon Sep 17 00:00:00 2001 From: vinayakkorti <35797487+vinayakkorti@users.noreply.github.com> Date: Wed, 17 Jun 2020 15:00:05 +0530 Subject: [PATCH 21/22] 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 4e60674..1f0f68a 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -42,5 +42,5 @@ steps: inputs: buildType: 'current' downloadType: 'single' - artifactName: 'myartifact' + artifactName: 'drop' downloadPath: '$(System.ArtifactsDirectory)' From 0cb56a6d254587cacf324bff144b67cb2315539b Mon Sep 17 00:00:00 2001 From: vinayakkorti <35797487+vinayakkorti@users.noreply.github.com> Date: Wed, 17 Jun 2020 15:08:40 +0530 Subject: [PATCH 22/22] 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 1f0f68a..0447f7d 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -35,12 +35,12 @@ steps: - task: PublishBuildArtifacts@1 inputs: PathtoPublish: '$(Build.ArtifactStagingDirectory)' - ArtifactName: 'drop' + ArtifactName: 'test' publishLocation: 'Container' - task: DownloadBuildArtifacts@0 inputs: buildType: 'current' downloadType: 'single' - artifactName: 'drop' + artifactName: 'test' downloadPath: '$(System.ArtifactsDirectory)'