Skip to content

Commit 36f9ed8

Browse files
committed
Work CI-CD
- Fix condition on artifacts count.
1 parent 2b1f907 commit 36f9ed8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

azure-pipelines.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ steps:
9999
targetType: inline
100100
script: |
101101
$count = (Get-ChildItem -Path '.' -Filter '*.nupkg' -Recurse).Count
102-
Write-Host $count + ' NuGet packages found'
102+
Write-Host $count ' NuGet packages found'
103103
104104
# set variable to forward
105105
echo "##vso[task.setvariable variable=NUGET_COUNT;isOutput=true]$count"
@@ -109,7 +109,7 @@ steps:
109109
condition: >-
110110
and(
111111
succeeded(),
112-
gt(variables.NUGET_COUNT, 0),
112+
gt(variables['Count_Artifacts.NUGET_COUNT'], 0),
113113
eq(variables['System.PullRequest.PullRequestId'], '')
114114
)
115115
inputs:
@@ -133,7 +133,7 @@ steps:
133133
condition: >-
134134
and(
135135
succeeded(),
136-
gt(variables.NUGET_COUNT, 0),
136+
gt(variables['Count_Artifacts.NUGET_COUNT'], 0),
137137
eq(variables['System.PullRequest.PullRequestId'], '')
138138
)
139139
@@ -156,7 +156,7 @@ steps:
156156
condition: >-
157157
and(
158158
succeeded(),
159-
gt(variables.NUGET_COUNT, 0),
159+
gt(variables['Count_Artifacts.NUGET_COUNT'], 0),
160160
eq(variables['System.PullRequest.PullRequestId'], '')
161161
)
162162
continueOnError: false
@@ -168,7 +168,7 @@ steps:
168168
condition: >-
169169
and(
170170
succeeded(),
171-
gt(variables.NUGET_COUNT, 0),
171+
gt(variables['Count_Artifacts.NUGET_COUNT'], 0),
172172
eq(variables['System.PullRequest.PullRequestId'], '')
173173
)
174174
continueOnError: false
@@ -179,7 +179,7 @@ steps:
179179
condition: >-
180180
and(
181181
succeeded(),
182-
gt(variables.NUGET_COUNT, 0),
182+
gt(variables['Count_Artifacts.NUGET_COUNT'], 0),
183183
eq(variables['System.PullRequest.PullRequestId'], '')
184184
)
185185
inputs:
@@ -193,7 +193,7 @@ steps:
193193
condition: >-
194194
and(
195195
succeeded(),
196-
gt(variables.NUGET_COUNT, 0),
196+
gt(variables['Count_Artifacts.NUGET_COUNT'], 0),
197197
eq(variables['System.PullRequest.PullRequestId'], '')
198198
)
199199
continueOnError: true

0 commit comments

Comments
 (0)