From 9ae0f24be172f56c0375591bcb15f073ee3810b6 Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Wed, 1 Mar 2023 16:31:41 +0530 Subject: [PATCH 01/40] Update azure-pipelines-1.yml for Azure Pipelines creation pipeline stages --- azure-pipelines-1.yml | 37 ++++++++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index e11ae40..8184184 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -1,7 +1,4 @@ -# 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 +#Demo Project Application trigger: - Master @@ -9,11 +6,29 @@ trigger: pool: vmImage: ubuntu-latest -steps: -- script: echo Hello, world! - displayName: 'Run a one-line script' +stages: + - stage: 'junit' + displayName: 'junit Stage' + jobs: + - job: 'junitTest' + displayName: 'Running unit tests' + steps: + - script: echo'Running demo project unit test' + - task: Maven@3 + inputs: + mavenPomFile: 'pom.xml' + goals: 'test' + publishJUnitResults: true + testResultsFiles: '**/surefire-reports/TEST-*.xml' + codeCoverageToolOption: 'JaCoCo' + javaHomeOption: 'JDKVersion' + mavenVersionOption: 'Default' + mavenAuthenticateFeed: false + effectivePomSkip: false + sonarQubeRunAnalysis: false + checkStyleRunAnalysis: true + pmdRunAnalysis: true -- 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 From 4486332bf52bf30a1cdbb4c191aca9f5f918faa8 Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Wed, 1 Mar 2023 16:38:32 +0530 Subject: [PATCH 02/40] 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 8184184..e62ecb2 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -13,7 +13,7 @@ stages: - job: 'junitTest' displayName: 'Running unit tests' steps: - - script: echo'Running demo project unit test' + - script: echo 'Running Spring demo project unit test' - task: Maven@3 inputs: mavenPomFile: 'pom.xml' From 25e3212058bebf9feb640147aa54cbcd07539c6f Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Wed, 1 Mar 2023 16:44:22 +0530 Subject: [PATCH 03/40] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index e62ecb2..a358471 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -14,20 +14,12 @@ stages: displayName: 'Running unit tests' steps: - script: echo 'Running Spring demo project unit test' - - task: Maven@3 + - task: Npm@1 inputs: - mavenPomFile: 'pom.xml' - goals: 'test' - publishJUnitResults: true - testResultsFiles: '**/surefire-reports/TEST-*.xml' - codeCoverageToolOption: 'JaCoCo' - javaHomeOption: 'JDKVersion' - mavenVersionOption: 'Default' - mavenAuthenticateFeed: false - effectivePomSkip: false - sonarQubeRunAnalysis: false - checkStyleRunAnalysis: true - pmdRunAnalysis: true + command: 'install' + workingDir: '/TaskDirectory' + + From de0e8fea9ebbe42116260eadb5993d154f445e43 Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Wed, 1 Mar 2023 16:52:47 +0530 Subject: [PATCH 04/40] 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 a358471..f26f093 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -17,7 +17,7 @@ stages: - task: Npm@1 inputs: command: 'install' - workingDir: '/TaskDirectory' + workingDir: 'C:\agent\_work\1\s' From e062abe671db9d63ab32aae6c89e57b4fd954a1c Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Wed, 1 Mar 2023 16:54:57 +0530 Subject: [PATCH 05/40] 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 f26f093..80e93df 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -17,7 +17,7 @@ stages: - task: Npm@1 inputs: command: 'install' - workingDir: 'C:\agent\_work\1\s' + workingDir: '/home/vsts/work/1/s/' From ca983264f9db1fcfce1b79b869bc05677f54947d Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Wed, 1 Mar 2023 17:06:32 +0530 Subject: [PATCH 06/40] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 80e93df..438087e 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -13,11 +13,7 @@ stages: - job: 'junitTest' displayName: 'Running unit tests' steps: - - script: echo 'Running Spring demo project unit test' - - task: Npm@1 - inputs: - command: 'install' - workingDir: '/home/vsts/work/1/s/' + - template: PracticeProject.csproj From 8d564a36992ba3333789c1d351748724aa714979 Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Wed, 1 Mar 2023 17:28:12 +0530 Subject: [PATCH 07/40] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 438087e..42b9c8d 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -13,8 +13,11 @@ stages: - job: 'junitTest' displayName: 'Running unit tests' steps: - - template: PracticeProject.csproj - + - task: DotNetCoreCLI@0 + inputs: + command: 'build' + projects: '**/*Tests/*.csproj' + arguments: '--configuration $(buildConfiguration)' From 61599e3a0e6af170c9c572b4bdbe9a1760a6e63d Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Wed, 1 Mar 2023 17:36:22 +0530 Subject: [PATCH 08/40] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 42b9c8d..7eea00a 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -6,18 +6,16 @@ trigger: pool: vmImage: ubuntu-latest -stages: - - stage: 'junit' - displayName: 'junit Stage' - jobs: - - job: 'junitTest' - displayName: 'Running unit tests' - steps: - - task: DotNetCoreCLI@0 - inputs: - command: 'build' - projects: '**/*Tests/*.csproj' - arguments: '--configuration $(buildConfiguration)' + +steps: +# ... +# do this after other tasks such as building +- task: DotNetCoreCLI@2 + inputs: + command: test + projects: '**/*Tests/*.csproj' + arguments: '--configuration $(buildConfiguration)' + From 870c109ef321d2fe0d0f68e7488f1d3b29a681b3 Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Thu, 2 Mar 2023 11:44:47 +0530 Subject: [PATCH 09/40] 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 7eea00a..8518068 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -15,7 +15,10 @@ steps: command: test projects: '**/*Tests/*.csproj' arguments: '--configuration $(buildConfiguration)' - +- task: DotNetCoreInstaller@1 + inputs: + packageType: 'sdk' + version: '5.x' From a09925275a84bcb8bbf42d2435e0c56d91a7685c Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Thu, 2 Mar 2023 11:50:37 +0530 Subject: [PATCH 10/40] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 8518068..2336031 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -20,7 +20,11 @@ steps: packageType: 'sdk' version: '5.x' - +- task: DotNetCoreCLI@2 + inputs: + command: 'build' + feedsToUse: 'select' + versioningScheme: 'off' \ No newline at end of file From 50687ffeecc8f78872d6afc33073aa303d8fbc2f Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Thu, 2 Mar 2023 11:52:50 +0530 Subject: [PATCH 11/40] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 2336031..2e0a475 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -21,10 +21,14 @@ steps: version: '5.x' - task: DotNetCoreCLI@2 + displayName: 'dotnet publish' inputs: - command: 'build' - feedsToUse: 'select' - versioningScheme: 'off' + command: 'publish' + publishWebProjects: false + projects: '**/*.csproj' + arguments: '-o $(Build.ArtifactStagingDirectory)/Output' + zipAfterPublish: true + modifyOutputPath: true \ No newline at end of file From d6049f65bc9694591108fdaf37635cd753ab6fb2 Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Thu, 2 Mar 2023 11:55:35 +0530 Subject: [PATCH 12/40] 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 2e0a475..1c225bc 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -18,7 +18,7 @@ steps: - task: DotNetCoreInstaller@1 inputs: packageType: 'sdk' - version: '5.x' + version: '2.2.x' - task: DotNetCoreCLI@2 displayName: 'dotnet publish' From 1b0407006a768134fa5a784b79cde66a9e66d5e9 Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Thu, 2 Mar 2023 11:59:47 +0530 Subject: [PATCH 13/40] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 1c225bc..9351e09 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -21,14 +21,8 @@ steps: version: '2.2.x' - task: DotNetCoreCLI@2 - displayName: 'dotnet publish' inputs: - command: 'publish' - publishWebProjects: false - projects: '**/*.csproj' - arguments: '-o $(Build.ArtifactStagingDirectory)/Output' - zipAfterPublish: true - modifyOutputPath: true + command: 'test' \ No newline at end of file From a8adb8d47cc7ad6b0bf4d9a7b9bd0f76e599c7d0 Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Thu, 2 Mar 2023 12:02:00 +0530 Subject: [PATCH 14/40] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 9351e09..c81d3eb 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -21,8 +21,13 @@ steps: version: '2.2.x' - task: DotNetCoreCLI@2 + displayName: 'dotnet restore' inputs: - command: 'test' + command: 'restore' + feedsToUse: 'select' + feedRestore: 'projectName/feedName' + projects: '**/*.csproj' + includeNuGetOrg: true \ No newline at end of file From 992b32e5c4b10ded6f552fa40487a526d3f958cd Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Thu, 2 Mar 2023 12:08:00 +0530 Subject: [PATCH 15/40] 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 c81d3eb..e9910fb 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -18,7 +18,7 @@ steps: - task: DotNetCoreInstaller@1 inputs: packageType: 'sdk' - version: '2.2.x' + version: '2.217.0' - task: DotNetCoreCLI@2 displayName: 'dotnet restore' From 49f3f64ca741d25d6c29943bc7e34abf2f42edb2 Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Thu, 2 Mar 2023 12:09:59 +0530 Subject: [PATCH 16/40] 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 e9910fb..c81d3eb 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -18,7 +18,7 @@ steps: - task: DotNetCoreInstaller@1 inputs: packageType: 'sdk' - version: '2.217.0' + version: '2.2.x' - task: DotNetCoreCLI@2 displayName: 'dotnet restore' From 9ca313dc327ba6eeda26ea0c33a018c56f11ecea Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Thu, 2 Mar 2023 12:14:04 +0530 Subject: [PATCH 17/40] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 55 ++++++++++++++++++++++++++++++------------- 1 file changed, 38 insertions(+), 17 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index c81d3eb..d45e199 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -3,31 +3,52 @@ trigger: - Master -pool: - vmImage: ubuntu-latest - +variables: + buildConfiguration: 'Debug' steps: -# ... -# do this after other tasks such as building +- task: DotNetCoreInstaller@0 + displayName: 'Use .NET Core sdk 2.1.5' + inputs: + version: 2.1.403 + + - task: DotNetCoreCLI@2 + displayName: Restore inputs: - command: test - projects: '**/*Tests/*.csproj' - arguments: '--configuration $(buildConfiguration)' -- task: DotNetCoreInstaller@1 + command: restore + + projects: '**/Api*.csproj' + + +#Your build pipeline references an undefined variable named ‘Parameters.projects’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972 +#Your build pipeline references the ‘BuildConfiguration’ variable, which you’ve selected to be settable at queue time. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it settable at queue time. See https://go.microsoft.com/fwlink/?linkid=865971 +- task: DotNetCoreCLI@2 + displayName: Build inputs: - packageType: 'sdk' - version: '2.2.x' + projects: '$(Parameters.projects)' + + arguments: '--configuration $(BuildConfiguration)' + + +#Your build pipeline references an undefined variable named ‘Parameters.projects’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972 +#Your build pipeline references the ‘BuildConfiguration’ variable, which you’ve selected to be settable at queue time. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it settable at queue time. See https://go.microsoft.com/fwlink/?linkid=865971 - task: DotNetCoreCLI@2 - displayName: 'dotnet restore' + displayName: Publish + inputs: + command: publish + + publishWebProjects: false + + projects: '$(Parameters.projects)' + + arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)' + +- task: PublishBuildArtifacts@1 + displayName: 'Publish Artifact' inputs: - command: 'restore' - feedsToUse: 'select' - feedRestore: 'projectName/feedName' - projects: '**/*.csproj' - includeNuGetOrg: true + PathtoPublish: '$(build.artifactstagingdirectory)' \ No newline at end of file From 477779fc263f7e97b4259ec774839bd11431da16 Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Thu, 2 Mar 2023 12:17:19 +0530 Subject: [PATCH 18/40] 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 d45e199..4e991bd 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -18,7 +18,7 @@ steps: inputs: command: restore - projects: '**/Api*.csproj' + projects: '**/Test*.csproj' #Your build pipeline references an undefined variable named ‘Parameters.projects’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972 From 0fa225cc0401cc9d91f32340e664d9bb235f3097 Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Thu, 2 Mar 2023 12:22:46 +0530 Subject: [PATCH 19/40] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 39 +++++++++++++++------------------------ 1 file changed, 15 insertions(+), 24 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 4e991bd..241e1aa 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -2,53 +2,44 @@ trigger: - Master - -variables: - buildConfiguration: 'Debug' - +pool: + vmImage: ubuntu-latest steps: - task: DotNetCoreInstaller@0 displayName: 'Use .NET Core sdk 2.1.5' inputs: version: 2.1.403 - - - task: DotNetCoreCLI@2 - displayName: Restore inputs: - command: restore - - projects: '**/Test*.csproj' - - -#Your build pipeline references an undefined variable named ‘Parameters.projects’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972 -#Your build pipeline references the ‘BuildConfiguration’ variable, which you’ve selected to be settable at queue time. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it settable at queue time. See https://go.microsoft.com/fwlink/?linkid=865971 + command: test + projects: '**/*Tests/*.csproj' + arguments: '--configuration $(buildConfiguration)' +- task: DotNetCoreCLI@2 + displayName: 'dotnet restore' + inputs: + command: 'restore' + feedsToUse: 'select' + feedRestore: 'projectName/feedName' + projects: '**/*.csproj' + includeNuGetOrg: true - task: DotNetCoreCLI@2 displayName: Build inputs: projects: '$(Parameters.projects)' - arguments: '--configuration $(BuildConfiguration)' - - -#Your build pipeline references an undefined variable named ‘Parameters.projects’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972 -#Your build pipeline references the ‘BuildConfiguration’ variable, which you’ve selected to be settable at queue time. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it settable at queue time. See https://go.microsoft.com/fwlink/?linkid=865971 - - task: DotNetCoreCLI@2 displayName: Publish inputs: command: publish - publishWebProjects: false - projects: '$(Parameters.projects)' - arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)' - - task: PublishBuildArtifacts@1 displayName: 'Publish Artifact' inputs: PathtoPublish: '$(build.artifactstagingdirectory)' + + \ No newline at end of file From a4514dbfed2c9ae566061dd4f2d527da8adfaad7 Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Thu, 2 Mar 2023 12:25:44 +0530 Subject: [PATCH 20/40] 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 241e1aa..e55257d 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -6,9 +6,9 @@ pool: vmImage: ubuntu-latest steps: - task: DotNetCoreInstaller@0 - displayName: 'Use .NET Core sdk 2.1.5' + displayName: 'Use .NET Core sdk 2.2.x' inputs: - version: 2.1.403 + version: '2.2.x' - task: DotNetCoreCLI@2 inputs: command: test From f831c98c05ec67a440543a2b7fb8b68ddc294b00 Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Thu, 2 Mar 2023 12:27:29 +0530 Subject: [PATCH 21/40] 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 e55257d..58296d7 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -6,9 +6,9 @@ pool: vmImage: ubuntu-latest steps: - task: DotNetCoreInstaller@0 - displayName: 'Use .NET Core sdk 2.2.x' + displayName: 'Use .NET Core sdk 0.214.0' inputs: - version: '2.2.x' + version: '0.214.0' - task: DotNetCoreCLI@2 inputs: command: test From d042f72af7cc67120abdd00e7864412993be1b06 Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Thu, 2 Mar 2023 12:31:28 +0530 Subject: [PATCH 22/40] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 58296d7..b104cc4 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -5,10 +5,11 @@ trigger: pool: vmImage: ubuntu-latest steps: -- task: DotNetCoreInstaller@0 - displayName: 'Use .NET Core sdk 0.214.0' +- task: DotNetCoreInstaller@1 inputs: - version: '0.214.0' + packageType: 'sdk' + version: '2.2.x' + - task: DotNetCoreCLI@2 inputs: command: test From 02c0b77545da5915b561ce89d1e22ebaf66383b5 Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Thu, 2 Mar 2023 12:34:18 +0530 Subject: [PATCH 23/40] 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 b104cc4..b29d242 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -26,14 +26,14 @@ steps: - task: DotNetCoreCLI@2 displayName: Build inputs: - projects: '$(Parameters.projects)' + projects: '**/*Tests/*.csproj' arguments: '--configuration $(BuildConfiguration)' - task: DotNetCoreCLI@2 displayName: Publish inputs: command: publish publishWebProjects: false - projects: '$(Parameters.projects)' + projects: '**/*.csproj' arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)' - task: PublishBuildArtifacts@1 displayName: 'Publish Artifact' From 5ec3af13e427b50221d7f361e50def1ccb9fdfe2 Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Thu, 2 Mar 2023 12:36:48 +0530 Subject: [PATCH 24/40] 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 b29d242..d2c8c58 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -26,7 +26,7 @@ steps: - task: DotNetCoreCLI@2 displayName: Build inputs: - projects: '**/*Tests/*.csproj' + projects: '**/*.csproj' arguments: '--configuration $(BuildConfiguration)' - task: DotNetCoreCLI@2 displayName: Publish From bcad5f24a28cde7a4461c7d0ceecc311623d521f Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Thu, 2 Mar 2023 12:40:21 +0530 Subject: [PATCH 25/40] 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 d2c8c58..89d1b0b 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -26,7 +26,7 @@ steps: - task: DotNetCoreCLI@2 displayName: Build inputs: - projects: '**/*.csproj' + projects: 'sampleTest.API/*.csproj' arguments: '--configuration $(BuildConfiguration)' - task: DotNetCoreCLI@2 displayName: Publish From 4ae48858969b06e11b83cbc091cb469d990d9807 Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Thu, 2 Mar 2023 12:46:33 +0530 Subject: [PATCH 26/40] 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 89d1b0b..bd9f1bc 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -8,7 +8,7 @@ steps: - task: DotNetCoreInstaller@1 inputs: packageType: 'sdk' - version: '2.2.x' + version: '7.x' - task: DotNetCoreCLI@2 inputs: From 54f2ea2b4c5fd8214d0142ba8e8fbdb684c45688 Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Thu, 2 Mar 2023 12:49:36 +0530 Subject: [PATCH 27/40] 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 bd9f1bc..7693c53 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -8,7 +8,7 @@ steps: - task: DotNetCoreInstaller@1 inputs: packageType: 'sdk' - version: '7.x' + version: '7.0.102' - task: DotNetCoreCLI@2 inputs: From 889ab3fc443aebf8c3be8612dfeaa83f428771ab Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Thu, 2 Mar 2023 14:02:10 +0530 Subject: [PATCH 28/40] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 7693c53..ba649bb 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -23,22 +23,7 @@ steps: feedRestore: 'projectName/feedName' projects: '**/*.csproj' includeNuGetOrg: true -- task: DotNetCoreCLI@2 - displayName: Build - inputs: - projects: 'sampleTest.API/*.csproj' - arguments: '--configuration $(BuildConfiguration)' -- task: DotNetCoreCLI@2 - displayName: Publish - inputs: - command: publish - publishWebProjects: false - projects: '**/*.csproj' - arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)' -- task: PublishBuildArtifacts@1 - displayName: 'Publish Artifact' - inputs: - PathtoPublish: '$(build.artifactstagingdirectory)' + From 2ea52354cd514b5313d57a758966de06dc2af5bf Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Fri, 3 Mar 2023 09:36:02 +0530 Subject: [PATCH 29/40] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index ba649bb..935bc5b 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -23,8 +23,12 @@ steps: feedRestore: 'projectName/feedName' projects: '**/*.csproj' includeNuGetOrg: true - - +- task: DotNetCoreCLI@2 + displayName: Build + inputs: + command: build + projects: '**/*.csproj' + arguments: '--configuration $(buildConfiguration)' From c8f2512c6d03e416f63170763ddf62bc1a37f330 Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Fri, 3 Mar 2023 09:42:16 +0530 Subject: [PATCH 30/40] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 935bc5b..a3bf60c 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -4,6 +4,9 @@ trigger: - Master pool: vmImage: ubuntu-latest + +variables: + buildConfiguration: 'build' steps: - task: DotNetCoreInstaller@1 inputs: From 82916646b7cc9e3c4b06cfc11b5f439db544df0e Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Fri, 3 Mar 2023 09:43:37 +0530 Subject: [PATCH 31/40] 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 a3bf60c..942a76a 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -30,7 +30,7 @@ steps: displayName: Build inputs: command: build - projects: '**/*.csproj' + projects: 'Net7Test/Net7Test/Net7Test.csproj' arguments: '--configuration $(buildConfiguration)' From 52b2336a35fe8945fc36d28fe7504663e3144751 Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Fri, 3 Mar 2023 09:45:37 +0530 Subject: [PATCH 32/40] 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 942a76a..a3bf60c 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -30,7 +30,7 @@ steps: displayName: Build inputs: command: build - projects: 'Net7Test/Net7Test/Net7Test.csproj' + projects: '**/*.csproj' arguments: '--configuration $(buildConfiguration)' From 462b3261f902bab0a300407aad6056bc8505d0c0 Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Fri, 3 Mar 2023 09:51:46 +0530 Subject: [PATCH 33/40] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index a3bf60c..86e7739 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -33,6 +33,12 @@ steps: projects: '**/*.csproj' arguments: '--configuration $(buildConfiguration)' - +- task: DotNetCoreCLI@2 + displayName: Publish + inputs: + command: publish + publishWebProjects: false + projects: '**/*.csproj' + arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)' \ No newline at end of file From dc3378312f5dbe2c8a977f3df69676e9909c5bc6 Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Fri, 3 Mar 2023 09:52:01 +0530 Subject: [PATCH 34/40] 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 86e7739..f6a6aa0 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -39,6 +39,6 @@ steps: command: publish publishWebProjects: false projects: '**/*.csproj' - arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)' + arguments: '--configuration $(buildConfiguration) --output $(build.artifactstagingdirectory)' \ No newline at end of file From 41ee8f3b881b32ee5411917a6df80744eaf2cbb4 Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Fri, 3 Mar 2023 09:53:37 +0530 Subject: [PATCH 35/40] 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 f6a6aa0..9d233fe 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -41,4 +41,7 @@ steps: projects: '**/*.csproj' arguments: '--configuration $(buildConfiguration) --output $(build.artifactstagingdirectory)' - \ No newline at end of file +- task: PublishBuildArtifacts@1 + displayName: 'Publish Artifact' + inputs: + PathtoPublish: '$(build.artifactstagingdirectory)' From d79b2395450557a41a425eea940ccc531949b7af Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Fri, 3 Mar 2023 11:58:45 +0530 Subject: [PATCH 36/40] 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 9d233fe..ec33fd3 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -6,7 +6,7 @@ pool: vmImage: ubuntu-latest variables: - buildConfiguration: 'build' + buildConfiguration: 'Release' steps: - task: DotNetCoreInstaller@1 inputs: From a1a612039851cb0c72dbc0e532fb86419dd92f98 Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Fri, 3 Mar 2023 12:17:28 +0530 Subject: [PATCH 37/40] 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 ec33fd3..541e5cc 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -6,7 +6,7 @@ pool: vmImage: ubuntu-latest variables: - buildConfiguration: 'Release' + buildConfiguration: 'Debug' steps: - task: DotNetCoreInstaller@1 inputs: From 73bcf58e5503f1e274205d872f2e551c9ff1fd7e Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Fri, 3 Mar 2023 15:04:35 +0530 Subject: [PATCH 38/40] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 541e5cc..eaba3bf 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -3,7 +3,7 @@ trigger: - Master pool: - vmImage: ubuntu-latest + name: Default variables: buildConfiguration: 'Debug' @@ -19,18 +19,18 @@ steps: projects: '**/*Tests/*.csproj' arguments: '--configuration $(buildConfiguration)' - task: DotNetCoreCLI@2 - displayName: 'dotnet restore' + displayName: dotnet restore inputs: command: 'restore' feedsToUse: 'select' feedRestore: 'projectName/feedName' - projects: '**/*.csproj' + projects: "**/*.csproj" includeNuGetOrg: true - task: DotNetCoreCLI@2 displayName: Build inputs: command: build - projects: '**/*.csproj' + projects: "**/*.csproj" arguments: '--configuration $(buildConfiguration)' - task: DotNetCoreCLI@2 @@ -38,7 +38,7 @@ steps: inputs: command: publish publishWebProjects: false - projects: '**/*.csproj' + projects: "**/*.csproj" arguments: '--configuration $(buildConfiguration) --output $(build.artifactstagingdirectory)' - task: PublishBuildArtifacts@1 From 4c0eab6dbc011b5a7cce5e9f3062f4c7e1811dd4 Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Fri, 3 Mar 2023 15:06:57 +0530 Subject: [PATCH 39/40] 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 eaba3bf..49d96a4 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -15,7 +15,7 @@ steps: - task: DotNetCoreCLI@2 inputs: - command: test + command: 'test' projects: '**/*Tests/*.csproj' arguments: '--configuration $(buildConfiguration)' - task: DotNetCoreCLI@2 From 6c63495525cff5d1aad14d00379446cff2fcdeba Mon Sep 17 00:00:00 2001 From: SubhasriSF4119 <123945964+SubhasriSF4119@users.noreply.github.com> Date: Fri, 3 Mar 2023 15:08:32 +0530 Subject: [PATCH 40/40] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 49d96a4..e4e2b64 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -24,13 +24,13 @@ steps: command: 'restore' feedsToUse: 'select' feedRestore: 'projectName/feedName' - projects: "**/*.csproj" + projects: '**/*.csproj' includeNuGetOrg: true - task: DotNetCoreCLI@2 displayName: Build inputs: command: build - projects: "**/*.csproj" + projects: '**/*.csproj' arguments: '--configuration $(buildConfiguration)' - task: DotNetCoreCLI@2 @@ -38,7 +38,7 @@ steps: inputs: command: publish publishWebProjects: false - projects: "**/*.csproj" + projects: '**/*.csproj' arguments: '--configuration $(buildConfiguration) --output $(build.artifactstagingdirectory)' - task: PublishBuildArtifacts@1