This feature is available in Catalyst, Enterprise, and Ultimate editions.
The following must be considered In order for CommitStream to function properly when using Subversion
Your Subversion server must be able to communicate with the CommitStream host (For example, https://commitstream.v1host.com)
If using Digital.ai Agility on-premise, your Digital.ai Agility instance must be able to communicate with the CommitStream host
If using a Windows-based Subversion server, Powershell ver 4.0 or greater is required
If using a Linux-based Subversion server, Bash ver 4.0 or greater is required
In order to follow CommitStream links for commits or repositories, the network where your Subversion server is located must be accessible
The following steps can be used for both Windows and Linux based Subversion servers.
Click the Admin icon , scroll down to the DevOps section, and click CommitStream
Click on the Subversion VCS icon.
- Enter the URL of the desired Subversion server and click Add.
- Once the repository has been added, click the Download link on the right hand side to download the "commit-event" file. Download the file for the OS family being used on your Subversion server.
- Once the download is complete, take the "commit-event" file ("commit-event.ps1" for windows or "commit-event.sh" for Linux) and place it on the repository's "hooks" folder.
In order for commit ID links created by CommitStream to work propertly, edit the "commit-event" file at line 15 to include the base URL for the repository in question AND the Subversion revision path ("/r") in the following format: "<subversion domain>/<subversion repository name>/<revision path>". This may vary depending on the Subversion server product you are using so be sure to test it prior to use in a production environment.
$html_url = "http://acmecorp.local/MySubversionRepository/PathToRevision"
- Download the "post-commit" file and place it on your "hooks" folder ("post-commit.bat" for windows or "post.commit" for Linux)
If you already have a "post-commit" file in place, add the following values to it:
ECHO OFF SET REPOS=%1 SET REV=%2 SET TXN_NAME=%3 SET DIR=%REPOS%/hooks Powershell.exe -executionpolicy remotesigned -File %DIR%/commit-event.ps1 %REPOS% %REV%
#!/bin/bash REPOS="$1" REV="$2" "$REPOS"/hooks/commit-event.sh "$REPOS" "$REV"
After this setup is done, CommitStream will receive the commit data from your Subversion repo and display it in Digital.ai Agility.