This tutorial will guide you through the process of integrating Git with our AutoBuild system. Git integration allows you to version control your project's source code and ensure that your builds are based on the latest changes.

Prerequisites

Before you start, make sure you have the following prerequisites:

  • Git installed on your local machine.
  • An existing Git repository for your project.

Step-by-Step Guide

1. Initialize Git Repository

If you haven't already, initialize a Git repository in your project directory.

cd /path/to/your/project
git init

2. Clone Repository

Clone the remote repository to your local machine. Replace remote-repo-url with the actual URL of your remote Git repository.

git clone remote-repo-url

3. Configure AutoBuild

Add your project to the AutoBuild system by navigating to the AutoBuild dashboard and creating a new project. Configure the necessary settings, such as build triggers and output directories.

Learn more about configuring AutoBuild

4. Link Git with AutoBuild

To link your Git repository with the AutoBuild project, navigate to the AutoBuild project settings page and find the "Git Integration" section. Enter the remote repository URL and click "Save".

5. Commit and Push Changes

Make changes to your project's source code and commit them to the Git repository.

git add .
git commit -m "Update project"
git push

6. Trigger AutoBuild

After pushing changes to the remote repository, AutoBuild will automatically trigger a build based on the configured triggers.

7. Monitor Builds

Monitor the build progress in the AutoBuild dashboard. You can view build logs, artifacts, and other build-related information.

Conclusion

Congratulations! You have successfully integrated Git with our AutoBuild system. This will help you maintain version control for your project and ensure that your builds are based on the latest changes.

For more information on Git and version control, visit the following resources: