/// <summary>
        /// Assigns a server project to given configuration items.
        /// </summary>
        /// <param name="serverProject">The server project.</param>
        /// <param name="configurationItemsSupport">The configuration items provider.</param>
        /// <param name="serverAddress">The server address.</param>
        public void AssignServerProject(ServerProject serverProject, IConfigurationItemsSupport configurationItemsSupport, string serverAddress)
        {
            // for now, we extract the project name from the address
            var projectNameWithoutAddress = serverProject.Address.Substring(serverAddress.Length, serverProject.Address.Length - serverAddress.Length - 1).Trim('/');

            if (projectNameWithoutAddress.StartsWith("job", StringComparison.CurrentCultureIgnoreCase))
            {
                projectNameWithoutAddress = projectNameWithoutAddress.Substring(3, projectNameWithoutAddress.Length - 3).TrimStart('/');
            }

            configurationItemsSupport.GetConfigurationByKey(JenkinsProject.ProjectName).Value   = projectNameWithoutAddress;
            configurationItemsSupport.GetConfigurationByKey(JenkinsProject.ServerAddress).Value = serverAddress;
        }
 /// <summary>
 /// Assigns the <see cref="T:Soloplan.WhatsON.ServerProject" /> to <see cref="T:Soloplan.WhatsON.ConfigurationItem" />.
 /// </summary>
 /// <param name="serverProject">The server project.</param>
 /// <param name="configurationItemsSupport">The configuration items provider.</param>
 /// <param name="serverAddress">The server address.</param>
 public void AssignServerProject(ServerProject serverProject, IConfigurationItemsSupport configurationItemsSupport, string serverAddress)
 {
     configurationItemsSupport.GetConfigurationByKey(CruiseControlProject.ProjectName).Value = serverProject.Name;
     configurationItemsSupport.GetConfigurationByKey(ServerConnector.ServerAddress).Value    = serverAddress;
 }