OpenInsightApplicationProgrammingInterface
This commit is contained in:
124
Barcode-Host.yml
124
Barcode-Host.yml
@ -6,43 +6,101 @@ trigger:
|
||||
include:
|
||||
- "Server/*"
|
||||
|
||||
pool:
|
||||
name: Mesa-Linux
|
||||
demands: Barcode-Host
|
||||
variables:
|
||||
BuildConfiguration: "Release"
|
||||
NugetSource: "https://eaf-prod.mes.infineon.com/v3/index.json"
|
||||
|
||||
steps:
|
||||
- script: |
|
||||
echo $(Build.BuildId)
|
||||
echo $(Build.Reason)
|
||||
echo $(Build.Repository.Id)
|
||||
echo $(Build.Repository.Name)
|
||||
echo $(Build.SourceVersion)
|
||||
displayName: "Echo Check"
|
||||
stages:
|
||||
- stage: Unity4
|
||||
displayName: Unity4
|
||||
pool:
|
||||
name: Mesa-Linux
|
||||
demands: Barcode-Host-Unity4
|
||||
jobs:
|
||||
- job: Unity4
|
||||
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 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 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 Release --source https://eaf-prod.mes.infineon.com/v3/index.json"
|
||||
workingDirectory: Server
|
||||
displayName: "Core Build - Server"
|
||||
- script: "dotnet build --configuration $(BuildConfiguration) --source $(NugetSource)"
|
||||
workingDirectory: Server
|
||||
displayName: "Core Build - Server"
|
||||
|
||||
- script: "systemctl stop barcode-host.service"
|
||||
displayName: "stop barcode-host service"
|
||||
enabled: false
|
||||
- script: "systemctl stop barcode-host.service"
|
||||
displayName: "stop barcode-host service"
|
||||
enabled: false
|
||||
|
||||
- script: "dotnet publish --configuration Release --output ~/Barcode-Host-$(Build.SourceVersion)-$(Build.BuildId)-Release --source https://eaf-prod.mes.infineon.com/v3/index.json"
|
||||
workingDirectory: Server
|
||||
displayName: "Core Publish - Server"
|
||||
- script: "dotnet publish --configuration $(BuildConfiguration) --output ~/Barcode-Host-$(Build.SourceVersion)-$(Build.BuildId)-$(BuildConfiguration)/Server --source $(NugetSource)"
|
||||
workingDirectory: Server
|
||||
displayName: "Core Publish - Server"
|
||||
|
||||
- script: "systemctl start barcode-host.service"
|
||||
displayName: "start barcode-host service"
|
||||
enabled: false
|
||||
- script: "systemctl start barcode-host.service"
|
||||
displayName: "start barcode-host service"
|
||||
enabled: false
|
||||
|
||||
- script: "echo ln -s /home/$USER/Barcode-Host-$(Build.SourceVersion)-$(Build.BuildId)-$(BuildConfiguration)/Server /var/www/Barcode-Host/Server"
|
||||
displayName: "Echo Symbolic Link Command"
|
||||
|
||||
- stage: Unity5
|
||||
displayName: Unity5
|
||||
pool:
|
||||
name: Mesa-Linux
|
||||
demands: Barcode-Host-Unity5
|
||||
jobs:
|
||||
- job: Unity5
|
||||
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 $(NugetSource)"
|
||||
workingDirectory: Server
|
||||
displayName: "Core Build - Server"
|
||||
|
||||
- script: "systemctl stop barcode-host.service"
|
||||
displayName: "stop barcode-host service"
|
||||
enabled: false
|
||||
|
||||
- script: "dotnet publish --configuration $(BuildConfiguration) --output ~/Barcode-Host-$(Build.SourceVersion)-$(Build.BuildId)-$(BuildConfiguration)/Server --source $(NugetSource)"
|
||||
workingDirectory: Server
|
||||
displayName: "Core Publish - Server"
|
||||
|
||||
- script: "systemctl start barcode-host.service"
|
||||
displayName: "start barcode-host service"
|
||||
enabled: false
|
||||
|
||||
- script: "echo ln -s /home/$USER/Barcode-Host-$(Build.SourceVersion)-$(Build.BuildId)-$(BuildConfiguration)/Server /var/www/Barcode-Host/Server"
|
||||
displayName: "Echo Symbolic Link Command"
|
||||
|
Reference in New Issue
Block a user