From c2ba272871a15748ab492a4a82227c568a48544c Mon Sep 17 00:00:00 2001 From: Sergio Fenoll Date: Tue, 27 Sep 2022 12:02:32 +0200 Subject: [PATCH] Set a default value for `build-event` flag of `cli exec` command (#1212) Otherwise `cli exec` does not do anything due to the default constraints applied to a pipeline (i.e., some kind of build event is expected). --- cli/exec/flags.go | 1 + docs/docs/40-cli.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/exec/flags.go b/cli/exec/flags.go index d630507d9..e5aaa30e2 100644 --- a/cli/exec/flags.go +++ b/cli/exec/flags.go @@ -157,6 +157,7 @@ var flags = []cli.Flag{ &cli.StringFlag{ EnvVars: []string{"CI_BUILD_EVENT"}, Name: "build-event", + Value: "manual", }, &cli.StringFlag{ EnvVars: []string{"CI_BUILD_LINK"}, diff --git a/docs/docs/40-cli.md b/docs/docs/40-cli.md index 39f473b77..8bb0da860 100644 --- a/docs/docs/40-cli.md +++ b/docs/docs/40-cli.md @@ -286,7 +286,7 @@ execute a local build **--build-created**="": (default: 0) -**--build-event**="": +**--build-event**="": (default: manual) **--build-finished**="": (default: 0)