Skip to content

Commit e7db9a0

Browse files
author
Sven Saatkamp
committed
log warning when bicep build reports warnings
1 parent 928ec50 commit e7db9a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/run/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,10 @@ export function executeBicepBuild(files: string[], bicepTool: string, additional
130130
files.forEach((file: string) => {
131131
const args = ['build', file, ...additionalArgsByInputs];
132132
const bicepProcess = taskLib.tool(bicepTool).arg(args).execSync();
133-
134133
if (bicepProcess.code !== 0) {
135134
throw new Error(`Failed to execute script. Related file: ${file}`);
135+
} else if (bicepProcess.stderr.length > 0) {
136+
taskLib.setResult(taskLib.TaskResult.SucceededWithIssues, bicepProcess.stderr, true);
136137
} else {
137138
taskLib.debug(`- Built '${file}' successfully`);
138139
}

0 commit comments

Comments
 (0)