Skip to content

Commit

Permalink
Merge pull request #20 from ordercloud-api/amrarick26-patch-1
Browse files Browse the repository at this point in the history
Update azure-pipelines.yml
  • Loading branch information
amrarick26 authored Feb 16, 2024
2 parents 332c3dc + c73ecd1 commit 5740f05
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 {
Expand All @@ -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:
Expand Down

0 comments on commit 5740f05

Please sign in to comment.