Run build command
mbt build branch [name] [--content] [--name <name>] [--fuzzy]
Build modules in a branch. Assume master if branch name is not specified.
Build just the modules matching the --name
filter if specified.
Default --name
filter is a prefix match. You can change this to a subsequence
match by using --fuzzy
option.
mbt build commit <commit> [--content] [--name <name>] [--fuzzy]
Build modules in a commit. Full commit sha is required.
Build just the modules modified in the commit when --content
flag is used.
Build just the modules matching the --name
filter if specified.
Default --name
filter is a prefix match. You can change this to a subsequence
match by using --fuzzy
option.
mbt build diff --from <commit> --to <commit>
Build modules changed between from
and to
commits.
In this mode, mbt works out the merge base between from
and to
and
evaluates the modules changed between the merge base and to
.
mbt build head [--content] [--name <name>] [--fuzzy]
Build modules in current head.
Build just the modules matching the --name
filter if specified.
Default --name
filter is a prefix match. You can change this to a subsequence
match by using --fuzzy
option.
mbt build pr --src <name> --dst <name>
Build modules changed between --src
and --dst
branches.
In this mode, mbt works out the merge base between --src
and --dst
and
evaluates the modules changed between the merge base and --src
.
mbt build local [--all] [--content] [--name <name>] [--fuzzy]
Build modules modified in current workspace. All modules in the workspace are
built if --all
option is specified.
Build just the modules matching the --name
filter if specified.
Default --name
filter is a prefix match. You can change this to a subsequence
match by using --fuzzy
option.
When executing build, following environment variables are initialised and can be used by the command being executed.
MBT_MODULE_NAME
Name of the moduleMBT_MODULE_PATH
Relative path to the module directoryMBT_MODULE_VERSION
Module versionMBT_BUILD_COMMIT
Git commit SHA of the commit being builtMBT_REPO_PATH
Absolute path to the repository directoryIn addition to the variables listed above, module properties are also populated
in the form of MBT_MODULE_PROPERTY_XXX
where XXX
denotes the key.
-h, --help help for build
--debug Enable debug output
--in string Path to repo