58 lines
1.9 KiB
YAML
58 lines
1.9 KiB
YAML
trigger:
|
|
branches:
|
|
include:
|
|
- red-hat
|
|
paths:
|
|
include:
|
|
- "Server/*"
|
|
- "Shared/*"
|
|
- "Server.Tests/*"
|
|
exclude:
|
|
- ".vscode/*"
|
|
- "JavaScript/*"
|
|
- "SignalRChat/*"
|
|
- "**/*.yml"
|
|
|
|
variables:
|
|
BuildConfiguration: "Release"
|
|
ASPNETCORE_ENVIRONMENT: "Production"
|
|
|
|
stages:
|
|
- stage: auclv0558
|
|
displayName: auclv0558
|
|
pool:
|
|
name: open-insight-metrology-viewer
|
|
demands: barcode-host-auclv0558
|
|
jobs:
|
|
- job: auclv0558
|
|
steps:
|
|
- script: |
|
|
echo $(Build.BuildId)
|
|
echo $(Build.Reason)
|
|
echo $(Build.Repository.Id)
|
|
echo $(Build.Repository.Name)
|
|
echo $(Build.SourceVersion)
|
|
displayName: "Echo Check"
|
|
|
|
- script: "dotnet nuget locals all --clear"
|
|
displayName: "Nuget Clear"
|
|
enabled: false
|
|
|
|
- script: |
|
|
dotnet user-secrets init
|
|
dotnet user-secrets set "BuildNumber" "$(Build.BuildId)"
|
|
dotnet user-secrets set "BuildSourceVersion" "$(Build.SourceVersion)"
|
|
dotnet user-secrets list
|
|
workingDirectory: Server
|
|
displayName: "Safe storage of app secrets - Server"
|
|
|
|
- script: "dotnet build --configuration $(BuildConfiguration) --source https://eaf-prod.mes.infineon.com/v3/index.json"
|
|
workingDirectory: Server
|
|
displayName: "Core Build - Server"
|
|
|
|
- script: "dotnet publish --configuration $(BuildConfiguration) --output ~/Barcode-Host-$(Build.SourceVersion)-$(Build.BuildId)-$(BuildConfiguration)/Server"
|
|
workingDirectory: Server
|
|
displayName: "Core Publish - Server"
|
|
|
|
- script: "echo ln -s /home/$USER/Barcode-Host-$(Build.SourceVersion)-$(Build.BuildId)-$(BuildConfiguration)/Server /var/www/Barcode-Host/Server"
|
|
displayName: "Echo Symbolic Link Command" |