/
azure-pipelines.yml
76 lines (65 loc) · 1.77 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# YAML-Pipelines test
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
trigger:
branches:
include: [ 'master']
paths:
exclude: [ 'azure-pipelines.yml','azure-pipelines-1.yml' ] # Änderung der Pipeline-Dateien kein automatischer Trigger
stages:
- stage: build
jobs:
- job: buildJob
pool:
vmImage: 'windows-latest'
variables:
version: '1'
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: PowerShell@2
inputs:
targetType: 'inline'
script: '# Write your powershell commands here.
Write-Host "Build"
Write-Host $env:version
# Writes a warning to build summary and to log in yellow text
Write-Host "##vso[task.LogIssue type=warning;]This is the warning"'
- task: DotNetCoreCLI@2
inputs:
command: 'build'
configuration: '$(BuildConfiguration)'
- stage: staging
jobs:
- job: stagingJob
pool:
vmImage: 'windows-latest'
variables:
version: '1'
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: PowerShell@2
inputs:
targetType: 'inline'
script: '# Write your powershell commands here.
Write-Host "staging"
Write-Host $env:version'
- stage: produktion
jobs:
- job: produktionJob
pool:
vmImage: 'windows-latest'
variables:
version: '1'
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: PowerShell@2
inputs:
targetType: 'inline'
script: '# Write your powershell commands here.
Write-Host "produktion"
Write-Host $env:version'