Hygieia SCM Subversion Collector

Hygieia SCM Subversion Collector

Welcome ot the Hygieia SCM Subversion Collector

Setup Instructions

To configure the Subversion Collector, execute the following steps:

  • Step 1: Change Directory

Change the current working directory to the subversion directory of your Hygieia source code installation.

For example, in the Windows command prompt, run the following command:

cd C:\Users\[username]\hygieia\collectors\scm\subversion
  • Step 2: Run Maven Build

Run the maven build to package the collector into an executable jar file:

 mvn install

The output file subversion-collector.jar is generated in the subversion\target folder.

  • Step 3: Set Parameters in Application Properties File

Set the configurable parameters in the application.properties file to connect to the Dashboard MongoDB database instance, including properties required by the Subversion Collector.

For information about sourcing the application properties file, refer to the Spring Boot Documentation.

To configure parameters for the Subversion Collector, refer to the sample application.properties file.

  • Step 4: Deploy the Executable File

To deploy the subversion-collector.jar file, change directory to subversion\target, and then execute the following from the command prompt:

java -jar subversion-collector.jar --spring.config.name=subversion --spring.config.location=[path to application.properties file]

Sample Application Properties File

The sample application.properties file lists parameter values to configure the Subversion Collector. Set the parameters based on your environment setup.

		# Database Name
                dbname=dashboarddb

                # Database HostName - default is localhost
                dbhost=localhost

                # Database Port - default is 27017
                dbport=27017

                # MongoDB replicaset
                dbreplicaset=[false if you are not using MongoDB replicaset]
                dbhostport=[host1:port1,host2:port2,host3:port3]

                # Database Username - default is blank
                dbusername=dashboarduser

                # Database Password - default is blank
                dbpassword=dbpassword

                # Logging File location
                logging.file=./logs/subversion.log

                # Collector schedule (required)
                subversion.cron=0 0/5 * * * *

                # Shared subversion username and password
                subversion.username=foo
                subversion.password=bar
                subversion.host=my.subversion.com

                # Maximum number of previous days from current date, when fetching commits
                subversion.commitThresholdDays=15