SVN

Description

Connecting to an SVN server is supported using svn over ssh, or by using a username and password.

For more details, refer to https://subversion.apache.org/.

Note

The following is a list of commands used by the SVN Repository Connector to retrieve sources (you can edit the common command base or the path to the executable in <SQUORE_HOME>/configuration/repositoryConnectors/SVN/svn_conf.tcl if needed):

  • svn info --xml --non-interactive --trust-server-cert --no-auth-cache [--username $username] [--password $password] [-r $revision] $url
  • svn export --force --non-interactive --trust-server-cert --no-auth-cache [--username $username] [--password $password] [-r $revision] $url

This Repository Connector now includes a hybrid SVN mode saves you an extra checkout of your source tree when using the local_path attribute (new in 18.0). Consult the reference below for more details.

Usage

SVN has the following options:

  • URL ( url , mandatory) Specify the URL of the SVN repository to export and analyse. The following protocols are supported: svn://, svn+ssh://, http://, https://.​

  • Revision ( rev ) Specify a revision number in this field, or leave it blank to analyse files at the HEAD revision.​

  • External references ( externals , default: exclude) Specify if when extracting sources from SVN the system should also extract external references.​

  • Sources are already extracted in ( local_path ) Specify a path to a folder where the sources have already been extracted. When using this option, sources are analysed in the specified folder instead of being checked out from SVN. At the end of the analysis, the url and revision numbers are attached to the analysed sources, so that any source code access from the web interface always retrieves files from SVN. This mode is mostly used to save an extra checkout in some continuous integration scenarios.​

  • Authentication ( useAccountCredentials , default: NO_CREDENTIALS)

  • Username ( username )

  • Password ( password )

The full command line syntax for SVN is:

-r "type=SVN,url=[text],rev=[text],externals=[multipleChoice],local_path=[text],useAccountCredentials=[multipleChoice],username=[text],password=[password]"