'continueOnError' parameter only accepts boolean literals
philipp-naused opened this issue · 3 comments
philipp-naused commented
parameters:
- name: BuildInParallel
type: boolean
default: false
steps:
- task: MSBuild@1
continueOnError: ${{ ne(variables['Build.Reason'], 'PullRequest') }}
inputs:
solution: Example.sln
maximumCpuCount: ${{ parameters.BuildInParallel }}
The continueOnError
reports the warning: Incorrect type. Expected "boolean".
The same happens with seemingly any value/expression that I try:
always()
not(false)
eq(1, 1)
${{ parameter.BuildInParallel }}
'true'
The only values that it accepts are true
and false
(not case-sensitive).
(maximumCpuCount
does the same)
The pipeline still works BTW.
max-zaytsev commented
@philipp-naused thanks for reporting! We are working on more prioritized issues at the moment, but will get back to this one soon.
ivanduplenskikh commented
@philipp-naused , could you confirm that the bug is fixed?
The latest release is here
philipp-naused commented
@ivanduplenskikh
Yes, it is fixed in v1.228.0
.
Thank you!