Partial Builds and Rebuilds#
During development or Continuous Integration you may want to limit the build process to specific stages:
Final stage (also called goal) |
Initial stage |
|
|---|---|---|
CLI option |
|
|
Initial build |
yes |
no |
Consecutive rebuilds |
yes |
yes |
Includes stages |
The specified depends on |
Depending on the specified stage |
Example for exaslct command build with option --goal:
exaslct build --flavor-path <path-to-flavor> --goal <build-stage>
Note
Command
buildonly rebuilds the Docker images, but does not export a new SLC.Option
--goalis not supported for commands other thanbuildandpushas these require specific images.Both options
--goaland--force-rebuild-fromcan be used multiple times to specify multiple build stages.Build stages before the one specified with CLI option
--force-rebuild-fromwill use cached versions whenever possible. However, if a single stage is built, it will trigger a build for all following build stages.The option
--force-rebuild-fromonly has an effect when used with option--force-rebuild.When specifying a final stage <Sn> with
--goalthenexaslctwill first check if stages <Sn> depends on, need to be updated.When specifying an initial stage <S0> with
--force-rebuild-fromthenexaslctwill also update all stages depending on <S0>.
Please note Build Steps and Their Dependencies.
The following build stages are currently available:
udfclient_depslanguage_depsbuild_depsbuild_runbase_test_depsbase_test_build_runflavor_test_build_runflavor_base_depsflavor_customizationreleasesecurity_scan
exaslct build \
--flavor-path <path-to-flavor> \
--force-rebuild \
--force-rebuild-from <build-stage>