Synopsis
--commit.
The commit is read from the git repository at --repo-root, which must be the repository’s top-level directory. Without --commit, no git repository is needed.
If --commit is only defaulted from CI and --repo-root is left at ., a missing repository or commit
prints a warning and the trail is begun without commit info.
You can optionally redact some of the git commit data sent to Kosli using --redact-commit-info.
To record repository information, all three of --repo-id, --repo-url, and --repository must be set together.
These are automatically set in GitHub Actions, GitLab CI, Bitbucket Pipelines, and Azure DevOps.
In other CI systems, set them explicitly to capture repository metadata.
TRAIL-NAMEs must start with a letter or number, and only contain letters, numbers, ., -, _, and ~.
Flags
Flags inherited from parent commands
Live Examples in different CI systems
- GitHub
- GitLab
View an example of the
kosli begin trail command in GitHub.In this YAML file, which created this Kosli Event.Examples Use Cases
These examples all assume that the flags--api-token, --org, --host, (and --flow, --trail when required), are set/provided.
begin/update a Kosli flow trail
begin/update a Kosli flow trail