AnsweredAssumed Answered

subversion connector

Question asked by 62060bd30bc22c724499284d33135fe4 on Feb 2, 2015
Latest reply on Sep 2, 2015 by 62060bd30bc22c724499284d33135fe4
I can't get Subversion integration to work.

I get this in svn2rally.log:
[2015-02-02 17:38:41 Z]  INFO : VCSConnectorDriver.execute - svn2rally started with parameters of: muskrat
[2015-02-02 17:38:43 Z] ERROR: undefined method `empty?' for nil:NilClass undefined method `empty?' for nil:NilClass
[2015-02-02 17:38:43 Z] C:/Users/andrewr/AppData/Local/Temp/ocrC3B2.tmp/lib/ruby/gems/2.0.0/gems/vcseif-1.2.6/lib/vcseif/rally_vcs_connection.rb:147:in `get_custom_headers'
C:/Users/andrewr/AppData/Local/Temp/ocrC3B2.tmp/lib/ruby/gems/2.0.0/gems/vcseif-1.2.6/lib/vcseif/rally_vcs_connection.rb:286:in `connect'
C:/Users/andrewr/AppData/Local/Temp/ocrC3B2.tmp/lib/ruby/gems/2.0.0/gems/vcseif-1.2.6/lib/vcseif/vcs_connector.rb:135:in `establishConnections'
C:/Users/andrewr/AppData/Local/Temp/ocrC3B2.tmp/lib/ruby/gems/2.0.0/gems/vcseif-1.2.6/lib/vcseif/vcs_connector.rb:91:in `initialize'
C:/Users/andrewr/AppData/Local/Temp/ocrC3B2.tmp/lib/ruby/gems/2.0.0/gems/vcseif-1.2.6/lib/vcseif/vcs_connector_runner.rb:155:in `new'
C:/Users/andrewr/AppData/Local/Temp/ocrC3B2.tmp/lib/ruby/gems/2.0.0/gems/vcseif-1.2.6/lib/vcseif/vcs_connector_runner.rb:155:in `operateService'
C:/Users/andrewr/AppData/Local/Temp/ocrC3B2.tmp/lib/ruby/gems/2.0.0/gems/vcseif-1.2.6/lib/vcseif/vcs_connector_runner.rb:111:in `run'
C:/Users/andrewr/AppData/Local/Temp/ocrC3B2.tmp/lib/ruby/gems/2.0.0/gems/vcseif-1.2.6/lib/vcseif/vcs_connector_driver.rb:179:in `delegateToConnectorRunner'
C:/Users/andrewr/AppData/Local/Temp/ocrC3B2.tmp/lib/ruby/gems/2.0.0/gems/vcseif-1.2.6/lib/vcseif/vcs_connector_driver.rb:53:in `block in execute'
C:/Users/andrewr/AppData/Local/Temp/ocrC3B2.tmp/lib/ruby/gems/2.0.0/gems/vcseif-1.2.6/lib/vcseif/vcs_connector_driver.rb:50:in `each'
C:/Users/andrewr/AppData/Local/Temp/ocrC3B2.tmp/lib/ruby/gems/2.0.0/gems/vcseif-1.2.6/lib/vcseif/vcs_connector_driver.rb:50:in `execute'
C:/Users/andrewr/AppData/Local/Temp/ocrC3B2.tmp/src/svn2rally.rb:51:in `main'
C:/Users/andrewr/AppData/Local/Temp/ocrC3B2.tmp/src/svn2rally.rb:55:in `<main>'
call chain follows:
    C:/Users/andrewr/AppData/Local/Temp/ocrC3B2.tmp/src/svn2rally.rb:55:in `<main>'
    C:/Users/andrewr/AppData/Local/Temp/ocrC3B2.tmp/src/svn2rally.rb:51:in `main'
    ... gems/vcseif-1.2.6/lib/vcseif/vcs_connector_driver.rb:50:in `execute'
    ... gems/vcseif-1.2.6/lib/vcseif/vcs_connector_driver.rb:50:in `each'
    ... gems/vcseif-1.2.6/lib/vcseif/vcs_connector_driver.rb:53:in `block in execute'
    ... gems/vcseif-1.2.6/lib/vcseif/vcs_connector_driver.rb:179:in `delegateToConnectorRunner'
    ... gems/vcseif-1.2.6/lib/vcseif/vcs_connector_runner.rb:111:in `run'
    ... gems/vcseif-1.2.6/lib/vcseif/vcs_connector_runner.rb:155:in `operateService'
    ... gems/vcseif-1.2.6/lib/vcseif/vcs_connector_runner.rb:155:in `new'
    ... gems/vcseif-1.2.6/lib/vcseif/vcs_connector.rb:91:in `initialize'
    ... gems/vcseif-1.2.6/lib/vcseif/vcs_connector.rb:135:in `establishConnections'
    ... gems/vcseif-1.2.6/lib/vcseif/rally_vcs_connection.rb:286:in `connect'
    ... gems/vcseif-1.2.6/lib/vcseif/rally_vcs_connection.rb:147:in `get_custom_headers'
!!!
[2015-02-02 17:38:43 Z]  INFO : VCSConnectorDriver.execute - finished processing config muskrat with status code of 9
[2015-02-02 17:38:43 Z]  INFO : VCSConnectorDriver.execute - svn2rally COMPLETED
This is my config:
VCSConnector:

#
# The content of the file below should follow YAML specifications
# Non standard characters should be enclosed with double quotations
# RepositoryBase is an exception and cannot be enclosed with double quotations
# Therefore the RepositoryBase cannot contain special characters.
#
Rally:
    Server              : "https://rally1.rallydev.com"        # required
    Protocol            : https                       # required, https or (http only for On Premise)
    Username            : "test@rally.com"          # required
    Password  : *********
    Workspace           : "Science"          # required, name of Rally Workspace
    RepositoryName      : "ExamScheduler"    # required, name of Rally SCMRepository
#   Proxy               : "server:port"               # optional
#   ProxyUser           : "Proxy User"                # optional, use when Proxy is an authenticating proxy
#   ProxyPassword       : "Proxy Password"            # optional, use when Proxy is an authenticating proxy
    Lookback            : 90                          # optional (in minutes), defaults to 60 minutes
    UpdateArtifactState : False                       # False is the default value
    StateExtractorClass : BasicActionsAndArtifactsExtractor(message)  # only used if above is True
    Debug               : True                       # defaults to False, to enable, specify a value of True

Subversion:
    Lookback            : 90                          # in minutes, optional (defaults to 120 minutes)
    Server              : "https://svn.sm.com" 
    RepositoryBase      : svn/scientia/GenieII/EX/Branches/Muskrat # required, filesystem path to svn repository
    MaxItems            : 100                         # required, max items processed in a run
#   RevURI              : "http://svn/svnurial/bigproject/rev/{revnumber}"             # optional, if running web access to repo
#   FileURI             : "http://svn/svnurial/bigproject/file/{revnumber}/{filepath}" # optional, if running web access

Services:
    Preview             : True                        # optional; when True, show what would happen
    LogLevel            : Debug                       # optional; default value is Info
#   PostBatchExtension  : MetricsPoster               # for future use

Transforms:                                           # Listing a Transform is Required
    Author              : Passthru                    # Required defaults to Passthru
#   Author              : Blank
#   Author              : EmailAddressAsRallyUser
#   Author              : FileBasedUserNameLookup(user_map.txt, ":")
#   Author              : RallyUserNameLookup(FirstName, LastName)
#   Author              : UserNameDomainAugmentLookup(DomainName)
#   Author              : UserLookupChainGang(FirstName, LastName, user_map.txt, ":")
and the config's own log:
************************************************************************************************************

         Rally VCSConnector starting at: 2015-02-02 17:56:16 Z  with pid: 10856
               curdir: C:/Program Files (x86)/Rally Software/SubversionConnectorforRally/svn2rally-1.2.6
              command: ruby.exe "C:\Users\andrewr\AppData\Local\Temp\ocrDA7D.tmp\src\svn2rally.rb" muskrat

    ************************************************************************************************************
    
[2015-02-02 17:56:16 Z]  INFO : VCSConnectorRunner.operateService - processing to commence using content from the C:/Program Files (x86)/Rally Software/SubversionConnectorforRally/svn2rally-1.2.6/configs/muskrat.yml.yml config file
[2015-02-02 17:56:16 Z]  INFO : VCSConnectorRunner.operateService - C:/Program Files (x86)/Rally Software/SubversionConnectorforRally/svn2rally-1.2.6/configs/muskrat.yml last modified 2015-02-02 17:38:31 Z,  size: 2930 chars
[2015-02-02 17:56:16 Z]  INFO : VCSConnectorRunner.inflateConfiguration - Preview mode in effect
[2015-02-02 17:56:16 Z]  INFO : VCSConnectorRunner.inflateConfiguration - LogLevel set to 'Debug'
[2015-02-02 17:56:16 Z]  INFO : VCSConnectorRunner.operateService - Time File value 2015-01-30 17:56:16 Z --- Now 2015-02-02 17:56:16 Z
[2015-02-02 17:56:16 Z]  INFO : VCSConnector.initialize - Rally VCS Connector for Subversion, version 1.2.6-cib1035
[2015-02-02 17:56:16 Z]  INFO : VCSConnector.initialize - Ruby platform: i386-mingw32
[2015-02-02 17:56:16 Z]  INFO : VCSConnector.initialize - Ruby  version: 2.0.0
[2015-02-02 17:56:16 Z] DEBUG : VCSConnector.initialize - Loading RallyVCSConnection class
[2015-02-02 17:56:16 Z] DEBUG : VCSConnector.initialize - Loading SubversionConnection class
[2015-02-02 17:56:16 Z] DEBUG : VCSConnector.initialize - Obtaining Rally and VCS connections...
[2015-02-02 17:56:16 Z]  INFO : VCSConnection.initialize - Initializing Rally connection version 1.2.6
[2015-02-02 17:56:16 Z]  INFO : RallyVCSConnection.initialize - Rally WSAPI Version v2.0
[2015-02-02 17:56:16 Z]  INFO : VCSConnection.initialize - Initializing Subversion connection version 1.2.6
[2015-02-02 17:56:17 Z]  INFO : SubversionConnection.connect - Connecting to Subversion
[2015-02-02 17:56:17 Z]  INFO : SubversionConnection.connect - Connected to Subversion server: https://svn.scientia.com 
[2015-02-02 17:56:17 Z]  INFO : SubversionConnection.connect - RepositoryBase: svn/scientia/GenieII/EX/Branches/Muskrat
[2015-02-02 17:56:17 Z]  INFO : SubversionConnection.connect - Uri: false
[2015-02-02 17:56:17 Z]  INFO : RallyVCSConnection.connect - Connecting to Rally
One thing I haven't been able to work out is if the Rally SCMRepository name has to be entered in Rally anywhere - I can't find anywhere to enter it - or is it implied by Project name etc?. I've selected 'Enable Build and Changeset' in the workspace.




 

Outcomes