Skip to content

Commit c6b39cf

Browse files
committed
azure-pipelines: Avoid unsupported mapping values
This ensure the syntax is correct allowing the jobs to be triggered. The azure pipelines error was: "This is an informational run. There was a YAML error preventing Azure Pipelines from determining if the pipeline should run. If you expected this pipeline to run, please validate your YAML. If it's valid, please try again later." Signed-off-by: Dan Nechita <dan.nechita@analog.com>
1 parent 0c481a2 commit c6b39cf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

azure-pipelines.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ variables:
55
isMain: $[eq(variables['Build.SourceBranch'], 'refs/heads/main')]
66
isRelease: $[startsWith(variables['Build.SourceBranch'], 'refs/tags/v')]
77
# Default build type for all builds
8-
cmakeBuildType: $[ if eq(variables.isRelease, true) ]: 'Release'
9-
$[ if ne(variables.isRelease, true) ]: 'RelWithDebInfo'
8+
${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/v') }}:
9+
cmakeBuildType: 'Release'
10+
${{ else }}:
11+
cmakeBuildType: 'RelWithDebInfo'
1012

1113
trigger:
1214
branches:

0 commit comments

Comments
 (0)