1
- version : 25
1
+ version : 40
2
2
jobs :
3
3
- name : CI
4
4
steps :
8
8
withLfs : false
9
9
withSubmodules : false
10
10
cloneDepth : 1
11
- condition : ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
11
+ condition : SUCCESSFUL
12
+ optional : false
12
13
- !CommandStep
13
14
name : build
14
15
runInContainer : true
15
16
image : docksdev/band:8.0
16
17
interpreter : !DefaultInterpreter
17
- commands :
18
- - cd src/SimpleW/
19
- - dotnet build -c @param:build_configuration@ SimpleW.csproj
18
+ commands : |
19
+ cd src/SimpleW/
20
+ dotnet build -c @param:build_configuration@ SimpleW.csproj
20
21
useTTY : false
21
- condition : ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
22
+ condition : SUCCESSFUL
23
+ optional : false
22
24
- !PublishArtifactStep
23
25
name : publish artifact
24
26
sourcePath : src/SimpleW/bin/@param:build_configuration@/
25
27
artifacts : ' */SimpleW.dll'
26
- condition : ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
28
+ condition : SUCCESSFUL
29
+ optional : false
27
30
paramSpecs :
28
31
- !ChoiceParam
29
32
name : build_configuration
@@ -40,12 +43,12 @@ jobs:
40
43
value : Release
41
44
triggers :
42
45
- !BranchUpdateTrigger
43
- params :
46
+ paramMatrix :
44
47
- name : build_configuration
48
+ secret : false
45
49
valuesProvider : !SpecifiedValues
46
50
values :
47
51
- - Release
48
- secret : false
49
52
retryCondition : never
50
53
maxRetries : 3
51
54
retryDelay : 30
@@ -58,41 +61,45 @@ jobs:
58
61
withLfs : false
59
62
withSubmodules : false
60
63
cloneDepth : 1
61
- condition : ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
64
+ condition : SUCCESSFUL
65
+ optional : false
62
66
- !CommandStep
63
67
name : build
64
68
runInContainer : true
65
69
image : docksdev/band:8.0
66
70
interpreter : !DefaultInterpreter
67
- commands :
68
- - cd src/SimpleW
69
- - dotnet pack -c Release SimpleW.csproj
71
+ commands : |
72
+ cd src/SimpleW
73
+ dotnet pack -c Release SimpleW.csproj
70
74
useTTY : false
71
- condition : ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
75
+ condition : SUCCESSFUL
76
+ optional : false
72
77
- !PublishArtifactStep
73
78
name : publish artifact
74
79
sourcePath : src/SimpleW/bin/Release/
75
80
artifacts : ' *.nupkg'
76
- condition : ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
81
+ condition : SUCCESSFUL
82
+ optional : false
77
83
- !CommandStep
78
84
name : deploy to nuget.org
79
85
runInContainer : true
80
86
image : docksdev/band:8.0
81
87
interpreter : !DefaultInterpreter
82
- commands :
83
- - cd src/SimpleW/bin/Release
84
- - dotnet nuget push *.nupkg --api-key @secret:nuget_token@ --source https://api.nuget.org/v3/index.json
88
+ commands : |
89
+ cd src/SimpleW/bin/Release
90
+ dotnet nuget push *.nupkg --api-key @secret:nuget_token@ --source https://api.nuget.org/v3/index.json
85
91
useTTY : false
86
- condition : ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
92
+ condition : SUCCESSFUL
93
+ optional : false
87
94
jobDependencies :
88
95
- jobName : CI
89
96
requireSuccessful : true
90
- jobParams :
97
+ paramMatrix :
91
98
- name : build_configuration
99
+ secret : false
92
100
valuesProvider : !SpecifiedValues
93
101
values :
94
102
- - Release
95
- secret : false
96
103
retryCondition : never
97
104
maxRetries : 3
98
105
retryDelay : 30
@@ -104,16 +111,17 @@ jobs:
104
111
remoteUrl : https://github.com/stratdev3/SimpleW
105
112
passwordSecret : github_token
106
113
force : true
107
- condition : ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
114
+ condition : SUCCESSFUL
115
+ optional : false
108
116
jobDependencies :
109
117
- jobName : CI
110
118
requireSuccessful : true
111
- jobParams :
119
+ paramMatrix :
112
120
- name : build_configuration
121
+ secret : false
113
122
valuesProvider : !SpecifiedValues
114
123
values :
115
124
- - Release
116
- secret : false
117
125
retryCondition : never
118
126
maxRetries : 3
119
127
retryDelay : 30
0 commit comments