From c73ecd1fcdf4058748f7d502aceaaec16f2b6a78 Mon Sep 17 00:00:00 2001 From: Alexa Snyder <17101525+amrarick26@users.noreply.github.com> Date: Fri, 16 Feb 2024 11:29:29 -0600 Subject: [PATCH] Update azure-pipelines.yml revert unintended changes --- azure-pipelines.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 18d0cb9..11addba 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -3,18 +3,13 @@ resources: - repository: self type: git ref: dev -parameters: -- name: AppServiceName - type: string - default: '' -- name: AppConfigConnection - type: string - default: '' variables: + - name: APP_SERVICE_NAME + value: put-your-name-here - name: SOLUTION_FILE_PATH - value: ./Customer.OrderCloud.sln + value: ./Catalyst.Examples.sln - name: API_PROJECT_NAME - value: Customer.OrderCloud.Api.csproj + value: Catalyst.Api.csproj jobs: - job: Build_MiddleWare pool: @@ -30,7 +25,7 @@ jobs: try { # call out to hosted endpoint to get the current version and add one for this build [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 - $response = Invoke-RestMethod -Uri "https://$(AppServiceName).azurewebsites.net/api/env" + $response = Invoke-RestMethod -Uri "https://$(APP_SERVICE_NAME).azurewebsites.net/api/env" $newversion = [int]$response.BuildNumber.Split(".")[2] + 1 Write-Host "##vso[build.updatebuildnumber]1.0.$newversion.$(Build.BuildId)" } catch { @@ -45,8 +40,6 @@ jobs: displayName: Build solution $(SOLUTION_FILE_PATH) inputs: solution: $(SOLUTION_FILE_PATH) - script: | - SET APP_CONFIG_CONNECTION=$(AppConfigConnection) - task: VSTest@2 displayName: Run C# Unit tests inputs: