Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,9 @@ public class PipelineRunOptions extends PipelineOptions {
@CommandLine.Option(names = { "-pc", "--pipeline-configuration" },
description = "The Pipeline Configuration File when using the Jenkins Templating Engine")
public File pipelineConfiguration;

@CommandLine.Option(names = { "-nbl", "--no-build-logs" },
description = "Disable writing build logs to stdout. " +
"Plugins that handle build logs will process them as usual")
public boolean noBuildLogs = false;
}
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ public int run(PipelineRunOptions runOptions) throws Exception {

b = f.getStartCondition().get();

writeLogTo(System.out);
if (!runOptions.noBuildLogs) {
writeLogTo(System.out);
}

f.get(); // wait for the completion
return b.getResult().ordinal;
Expand Down