File tree Expand file tree Collapse file tree 4 files changed +20
-13
lines changed Expand file tree Collapse file tree 4 files changed +20
-13
lines changed Original file line number Diff line number Diff line change 1
1
stages :
2
- - stage : Pack
2
+ - stage : Build
3
3
jobs :
4
- - job : Pack
4
+ - job : Build
5
5
strategy :
6
6
matrix :
7
7
' Windows ' :
@@ -13,7 +13,7 @@ stages:
13
13
pool :
14
14
vmImage : $(VM_IMAGE)
15
15
steps :
16
- - template : build/stages/pack .yml
16
+ - template : build/stages/build .yml
17
17
18
18
- stage : Docker
19
19
condition : succeeded()
Original file line number Diff line number Diff line change 1
1
steps :
2
- - task : DotNetCoreInstaller@0
3
- condition : eq( variables['Agent.OS'], 'Darwin' )
4
- displayName : ' Use .NET Core sdk 2.x'
5
- inputs :
6
- version : ' 2.2.107'
7
- packageType : sdk
2
+ - template : common-steps.yml
8
3
- task : UseRubyVersion@0
9
4
condition : ne( variables['Agent.OS'], 'Darwin' )
10
5
displayName : ' Use .Ruby >= 2.5'
11
6
inputs :
12
7
versionSpec : ' >= 2.5'
13
- addToPath : true # Optional
14
- - powershell : ./ build.ps1 -script build.cake -target Pack
15
- displayName : ' Cake build and Package '
8
+ addToPath : true
9
+ - script : dotnet cake build.cake --bootstrap && dotnet cake build.cake -- target=Copy-Files
10
+ displayName : ' Cake build'
16
11
env :
17
12
GITHUB_TOKEN : $(GITHUB_TOKEN)
18
13
NUGET_API_KEY : $(NUGET_API_KEY)
28
23
ENABLED_PUBLISH_NUGET : $(ENABLED_PUBLISH_NUGET)
29
24
ENABLED_PUBLISH_CHOCOLATEY : $(ENABLED_PUBLISH_CHOCOLATEY)
30
25
- publish : $(System.DefaultWorkingDirectory)
26
+ displayName : ' Upload pipeline artifacts'
31
27
condition : eq( variables['Agent.OS'], 'Windows_NT' )
32
28
artifact : artifacts
Original file line number Diff line number Diff line change
1
+ steps :
2
+ - task : UseDotNet@2
3
+ displayName : ' Use .NET Core sdk'
4
+ inputs :
5
+ packageType : sdk
6
+ version : 2.2.107
7
+ installationPath : $(Agent.ToolsDirectory)/dotnet
8
+ - script : dotnet tool install --global Cake.Tool
9
+ displayName : ' Install Cake tool'
Original file line number Diff line number Diff line change 1
1
steps :
2
+ - template : common-steps.yml
2
3
- task : DownloadPipelineArtifact@2
4
+ displayName : ' Download pipeline artifacts'
3
5
inputs :
4
6
source : current
5
7
path : $(Build.SourcesDirectory)
6
8
artifact : artifacts
7
- - powershell : ./ build.ps1 -script build.cake -target Docker-Test
9
+ - script : dotnet cake build.cake --bootstrap && dotnet cake build.cake -- target=Copy-Files
8
10
displayName : ' Docker build'
9
11
env :
10
12
DOCKER_USERNAME : $(DOCKER_USERNAME)
You can’t perform that action at this time.
0 commit comments