Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Prerequisite: This procedure assumes that you have already installed Incredibuild and Gitlab.

  2. Install an Incredibuild Agent on your Gitlab Runner machine. This Agent will function as an Incredibuild Initiator. Other Agents that are connected to the same Incredibuild Coordinator will act as helpers. We recommend verifying that the initiator agent and all helper agents are connected to the same coordinator in the Coordinator Monitor.

  3. Copy Create a file called gitlab-build.bat to in the root directory of your GitLab project . This batch file is triggered during pipeline executions. It instructs Incredibuild to build your VS solution using the configuration variables listed in the pipeline.with the following content:

    Code Block
    ECHO Executing BuildConsole command to build %PROJECT_NAME%
    BuildConsole.exe "%PROJECT_NAME%.sln" /Cfg="%CONFIGURATION%|%PLATFORM%" /rebuild /showtime /showagent

    This batch file is triggered during pipeline executions. It instructs Incredibuild to build your VS solution using the configuration variables listed in the pipeline.

  4. In your GitLab environment, edit the .gitlab-ci.yml file. This is a standard GitLab ci declaration file.
    In the script section, add a call to run the gitlab-build.bat file as seen here:

...