Scan a git repository, service (updating)

Initalize a Git scanner

If a Git repository clone already exists, clear it.

rm -rf repository_name

Run the Git scanner

  1. Start scanning a repository with the MAIA Agent command maia git_scan.

    Example: starting a MAIA Agent scanner that runs a scan every 5 minutes, for 4 hours.

    bundle exec maia git_scan --repo-name repository_name --cyclic 300:14400

  2. Go to the MAIA WebApp and login.

  3. On the Main menu, select Commits.

  4. Verify that the commits scanned from the repository are visible in the MAIA WebApp.

Run the Git scanner service

  1. Start scanning a repository with the MAIA Agent command maia git_scan_service.

    Example: starting a MAIA Agent scanner listens to topic MAIA_SCAN

    bundle exec maia git_scan_service --listen-topic MAIA_SCAN &

  2. Trigger the scanner sending Glimse::Source::ChangeCreated and Glimse::Source::ChangeSubmitted with the field repo filled-in.

  3. Go to the MAIA WebApp and login.

  4. On the Main menu, select Commits.

  5. Verify that the commits scanned from the repository are visible in the MAIA WebApp.

Results