Build a component with checkout (updating)

Updated:2023:07-03

Prepare

Prepare, if not already done, the environment file and the configuration file to build a component.

‚Äč The environment file must have following variables defined:

  • BUILD_ROOT
  • DELIVERABLE_ROOT
  • LOG_ROOT
  • MAIA_CORE_HOST
  • MAIA_CORE_HTTP_PORT
  • MAIA_CORE_APP_CONTEXT
  • MAIA_CORE_USE_SSL
  • MAIA_CORE_API_TOKEN_FILE
  • COMPONENT_CONF_FILE
  • COMPONENT_STATE_FILE
  • KAFKA_BROKERS
  • KAFKA_TOPIC

SRC_ROOT is not used in this case.

Build

  1. Use the MAIA Agent command checkout to checkout the component.

    a. To check out the component with an activity that is posted to the MAIA web app:

    maia checkout -c component_name -z "comment"

    b. To check out the component without an activity:

    maia checkout -c component_name

    c. To checkout an older version of a build, add the option -l and specify a :

    maia checkout -c component_name -l build_label

  2. Use the MAIA Agent command build to build the component.

    a. To build the component with an activity that is posted to MAIA web app:

    maia build -c component_name -p 0 -z "comment"

    b. To build the component without an activity:

    maia build -c component_name