Skip to main content

Configure and Edit Builds

Builds in a CI/CD environment represent a sequence of steps executed automatically to test, package, or deploy your application. The build configuration includes parameters such as the version control repository, execution steps, artifacts, etc.

Create Build Configuration

  1. Navigate to Projects projects-icon to access the project management interface.

    sub-project-project-interface

  2. Select the project where you want to create the build and click New Build Configuration.

    configure-build-project-overview

  3. Enter Build Configuration Name and an optional Description.

    create-build-basic-information

  4. Click Create to create the build configuration.

    create-build-general-settings-save-button

  5. Navigate to VCS Settings and click Add VCS.

    create-build-vcs-settings-add-vcs-button

  6. Enter the following details:

    • VCS Root Type: VCS type from where the source code will be fetched, such as Git, GitHub, Bitbucket, or other repository.
    • VCS Name: A unique name given by the user.
    • Repository URL: URL of the source code placed on Git.
    • Branch: The branch to build from, such as main or develop.
    • Checkout Directory: The local directory (on the Build Agent) where the repository will be checked out.
    • Authentication Mode: The method to authenticate the VCS while fetching the source code from the VCS.

    vcs-settings-filled

  7. (Optional) Click Test Connection to verify the configuration before saving.

    create-build-vcs-settings-test-connection-button

  8. Click OK to add the VCS.

    create-build-vcs-settings-ok-button

  9. Click Save to save the VCS Settings.

    create-build-vcs-settings-save-button

  10. Navigate to Execution Steps and click Add Execution Step.

    create-build-buils-steps-add-build-step-button

  11. Enter the following details:

    • Select Runner: The machine or environment, such as Command Line, Config File, MS Build, VS Test, SSH, or Script that executes build, test, and deployment steps.
    • Step Name: Name of the step (optional).
    • Working Directory: The directory where the commands will be executed. This is an optional field; if left blank, the default working directory will be used.
    • Commands: The shell command(s) executed as part of your build workflow.
    • Success Exit Code: Optional. Specifies the exit code that should be treated as a successful execution. The default success exit code is 0.
    • Execute Next Command: Controls whether subsequent steps continue to run if this step fails. When enabled, the build proceeds even if this step returns a non-success exit code.

    build-steps-filled

    note

    This procedure demonstrates configuration using the Command Line runner. For more information on build runners and their parameters, see Build RunnersBuildNinja's user interface is designed to provide quick access to all core features, from managing projects and viewing builds to configuring projects and deployments..

  12. Click OK to add the execution step.

    create-build-buils-steps-ok-button

  13. Click Save to save the Execution Steps.

    create-build-buils-steps-save-button

  14. Navigate to Artifacts and click Add Artifact.

    create-build-artifacts-add-artifact-button

  15. Enter the following details:

    • Name: Name of the artifact.
    • Condition: Defines when the build artifact will be published.
    • Paths: The location of files that the BuildNinja will save, upload, or pass to later steps or jobs.

    create-build-artifacts-filled

  16. Click OK to add the artifact.

    create-build-artifacts-ok-button

  17. Click Save to save the Artifacts.

    create-build-artifacts-save-button

  18. Navigate to Agents Criteria and click Add Parameter.

    agent-requirements-add-parameter-button

  19. Enter the following details:

    • Parameter Name: The name of a property or capability that the build agent must have.
    • Operator: The condition to check between the parameter and the value.
    • Value: The expected value to compare against the parameter.

    agent-requirements-filled

  20. Click OK to add the parameter.

    agent-requirements-ok-button

  21. Click Save to save the Agents Criteria.

    agent-requirements-save-button

  22. Navigate to Parameters and click Add Parameter.

    parameters-add-parameter-button

  23. Enter the following details:

    • Name: Unique identifier of the parameter within its scope.
    • Value: The value used unless overridden.
    • Protected: Encrypts and masks sensitive values in the UI and logs. Protected values cannot be retrieved in plaintext after creation.
    • Expose on Env: Makes the parameter available to all build steps as a standard OS environment variable.
    • Prompt on Run: Prompts the user to provide a value when a build is manually triggered.

    parameters-add-parameter-popup

  24. Click Add to add the parameter.

    parameters-add-button

  25. Click Save to save the Parameters.

    parameters-save-button

    The build configuration is now complete and ready to be executed.

Edit Build Configuration

BuildNinja enables you to update build configuration settings at any time to reflect changes in your development, infrastructure, or deployment workflows. You can modify the following settings:

Basic Information

Edit your basic build information using the following options:

  • Build Configuration Name: Update the display name of the build configuration.
  • Description: Add or change the description to clarify purpose, usage, or ownership.

edit-general-settings-options

VCS Settings

Edit your Version Control System (VCS) configuration using the following options:

  • Cache: Enable or disable configuration caching to control whether cloned repositories and dependencies are reused for faster build execution.
  • Add VCS: Connect a new repository.
  • Edit: Modify repository details such as URL, branch, or authentication method.
  • Delete: Remove VCS settings that are no longer needed.

edit-vcs-settings-options

Execution Steps

Edit your execution steps to define how your code is built, tested, and deployed using the following options:

  • Add Execution Step: Add a new step to the process.
  • Reorder: Change the execution order using drag-and-drop.
  • Edit: Update the configuration of an existing step.
  • Duplicate: Copy a step to reuse its configuration.
  • Disable: Temporarily turn off a step without deleting it.
  • Delete: Remove steps you no longer need.

edit-build-steps-options

Artifacts

Edit your artifact settings to manage the files generated during builds using the following options:

  • Add Artifact: Define new rules for what gets saved or shared.
  • Edit: Update existing artifact rules or destination paths.
  • Delete: Remove outdated or unused rules.

edit-artifacts-settings-options

Agents Criteria

Edit your agents criteria to control where builds run using the following options:

  • Add Parameter: Add filters to match specific build agents.
  • Edit: Update existing filters (e.g., OS, tools, tags).
  • Delete: Remove parameters that are no longer applicable.

edit-agent-requirements-options

Parameters

Manage your build parameters to customize build behavior using the following options:

  • Add Parameter: Define a new variable for use in build steps.
  • Edit: Update parameter values and configuration options.
  • Delete: Remove unused or obsolete parameters.

edit-parameters-options

How to Edit a Build Configuration

  1. Select the build configuration you want to edit and click Edit Configuration.

    build-overview-edit-configuration-button

  2. Select the setting you want to edit.

    editing-build-steps

  3. Make the necessary edits and click Save to save the updated build configuration.

    editing-build-steps-save-button

Edit Build Configuration via Configuration Details Tab

  1. Select the build configuration you want to edit.

    editing-settings-tab-build-overview

  2. Navigate to Configuration Details tab. You can modify the following settings in the Configuration Details tab:

    • General Settings
    • VCS Settings
    • Execution Steps
    • Artifact Settings
    • Agent Criteria

    editing-settings-tab-overview

  3. Click Edit icon next to the setting name to open its main settings page.

    editing-settings-tab-build-steps-settings

  4. Make the necessary edits and click Save to save the updated build configuration.

    editing-settings-tab-save-button