I am facing some issues with installing my CI Factory setup. I am
hoping you could help me.
I am installing CI Factory downloaded yesterday from your website and
I believe according to your blog update: http://jayflowers.com/WordPress/?cat=8&paged=4 that CI Factory is not expected to work with Vault 3.5.2 - What can I
do?
Please find attached my build log generated by command line:
nant\bin\nant.exe -buildfile:"Install Scripts\install.xml" -verbose
<begin log>
SourceControl.Repository.Load:
BUILD FAILED
INTERNAL ERROR
System.Web.Services.Protocols.SoapException: 2206 :
FailNotAdmin
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClien tMessage
message, WebResponse response, Stream responseStream, Boolean
asyncCall)
at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at
VaultClientNetLib.AdminService.VaultAdminService.Login(String
strHostname, Boolean bUseFullFiles, String username, String
strEncryptedPassword, String strRMKey, String& strAuthToken)
at VaultClientNetLib.VaultConnection.Login(String
strURLBase, String strUsername, String strPassword)
at VaultClientOperationsLib.ClientInstance.Login(String
urlbase, String username, String password)
at NAnt.Contrib.Tasks.SourceGearVault.VaultBase.Login()
at
NAnt.Contrib.Tasks.SourceGearVault.vaultaddrepo.ExecuteTask()
at NAnt.Core.Task.Execute() in c:\Projects\CI Factory
\Current\Product\Production\Nant\NAnt.Core\Task.cs:line 177
at NAnt.Core.Target.Execute() in c:\Projects\CI Factory
\Current\Product\Production\Nant\NAnt.Core\Target.cs:line 247
at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies) in c:\Projects\CI Factory\Current\Product\Production
\Nant\NAnt.Core\Project.cs:line 897
at NAnt.Core.Project.Execute() in c:\Projects\CI Factory
\Current\Product\Production\Nant\NAnt.Core\Project.cs:line 849
at NAnt.Core.Project.Run() in c:\Projects\CI Factory
\Current\Product\Production\Nant\NAnt.Core\Project.cs:line 934
Please send bug report to ci-factory@googlegroups.com.
Total time: 7.5 seconds.
BUILD FAILED
Nested build failed. Refer to build log for exact reason.:
NAnt.Core.BuildException: Nested build failed. Refer to build log for
exact reason.
at NAnt.Core.Tasks.NAntTask.RunBuild(FileInfo buildFile) in c:
\Projects\CI Factory\Current\Product\Production\Nant\NAnt.Core\Tasks
\NAntTask.cs:line 275
at NAnt.Core.Tasks.NAntTask.ExecuteTask() in c:\Projects\CI Factory
\Current\Product\Production\Nant\NAnt.Core\Tasks\NAntTask.cs:line 203
at NAnt.Core.Task.Execute() in c:\Projects\CI Factory\Current
\Product\Production\Nant\NAnt.Core\Task.cs:line 177
at NAnt.Core.Target.Execute() in c:\Projects\CI Factory\Current
\Product\Production\Nant\NAnt.Core\Target.cs:line 247
at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies) in c:\Projects\CI Factory\Current\Product\Production
\Nant\NAnt.Core\Project.cs:line 897
at NAnt.Core.Tasks.CallTask.ExecuteTask() in c:\Projects\CI Factory
\Current\Product\Production\Nant\NAnt.Core\Tasks\CallTask.cs:line 143
at NAnt.Core.Task.Execute() in c:\Projects\CI Factory\Current
\Product\Production\Nant\NAnt.Core\Task.cs:line 177
at NAnt.Core.Target.Execute() in c:\Projects\CI Factory\Current
\Product\Production\Nant\NAnt.Core\Target.cs:line 247
at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies) in c:\Projects\CI Factory\Current\Product\Production
\Nant\NAnt.Core\Project.cs:line 897
at NAnt.Core.Tasks.CallTask.ExecuteTask() in c:\Projects\CI Factory
\Current\Product\Production\Nant\NAnt.Core\Tasks\CallTask.cs:line 143
at NAnt.Core.Task.Execute() in c:\Projects\CI Factory\Current
\Product\Production\Nant\NAnt.Core\Task.cs:line 177
at NAnt.Core.Target.Execute() in c:\Projects\CI Factory\Current
\Product\Production\Nant\NAnt.Core\Target.cs:line 247
at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies) in c:\Projects\CI Factory\Current\Product\Production
\Nant\NAnt.Core\Project.cs:line 897
at NAnt.Core.Project.Execute() in c:\Projects\CI Factory\Current
\Product\Production\Nant\NAnt.Core\Project.cs:line 849
at NAnt.Core.Project.Run() in c:\Projects\CI Factory\Current\Product
\Production\Nant\NAnt.Core\Project.cs:line 934
> I am facing some issues with installing my CI Factory setup. I am > hoping you could help me.
> I am installing CI Factory downloaded yesterday from your website and > I believe according to your blog update: > http://jayflowers.com/WordPress/?cat=8&paged=4 > that CI Factory is not expected to work with Vault 3.5.2 - What can I > do?
> Please find attached my build log generated by command line: > nant\bin\nant.exe -buildfile:"Install Scripts\install.xml" -verbose
> <begin log>
> SourceControl.Repository.Load:
> BUILD FAILED
> INTERNAL ERROR
> System.Web.Services.Protocols.SoapException: 2206 : > FailNotAdmin > at > System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse > (SoapClientMessage > message, WebResponse response, Stream responseStream, Boolean > asyncCall) > at > System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String > methodName, Object[] parameters) > at > VaultClientNetLib.AdminService.VaultAdminService.Login(String > strHostname, Boolean bUseFullFiles, String username, String > strEncryptedPassword, String strRMKey, String& strAuthToken) > at VaultClientNetLib.VaultConnection.Login(String > strURLBase, String strUsername, String strPassword) > at VaultClientOperationsLib.ClientInstance.Login(String > urlbase, String username, String password) > at NAnt.Contrib.Tasks.SourceGearVault.VaultBase.Login() > at > NAnt.Contrib.Tasks.SourceGearVault.vaultaddrepo.ExecuteTask() > at NAnt.Core.Task.Execute() in c:\Projects\CI Factory > \Current\Product\Production\Nant\NAnt.Core\Task.cs:line 177 > at NAnt.Core.Target.Execute() in c:\Projects\CI Factory > \Current\Product\Production\Nant\NAnt.Core\Target.cs:line 247 > at NAnt.Core.Project.Execute(String targetName, Boolean > forceDependencies) in c:\Projects\CI Factory\Current\Product\Production > \Nant\NAnt.Core\Project.cs:line 897 > at NAnt.Core.Project.Execute() in c:\Projects\CI Factory > \Current\Product\Production\Nant\NAnt.Core\Project.cs:line 849 > at NAnt.Core.Project.Run() in c:\Projects\CI Factory > \Current\Product\Production\Nant\NAnt.Core\Project.cs:line 934
> Please send bug report to ci-factory@googlegroups.com.
> Total time: 7.5 seconds.
> BUILD FAILED
> Nested build failed. Refer to build log for exact reason.: > NAnt.Core.BuildException: Nested build failed. Refer to build log for > exact reason. > at NAnt.Core.Tasks.NAntTask.RunBuild(FileInfo buildFile) in c: > \Projects\CI Factory\Current\Product\Production\Nant\NAnt.Core\Tasks > \NAntTask.cs:line 275 > at NAnt.Core.Tasks.NAntTask.ExecuteTask() in c:\Projects\CI Factory > \Current\Product\Production\Nant\NAnt.Core\Tasks\NAntTask.cs:line 203 > at NAnt.Core.Task.Execute() in c:\Projects\CI Factory\Current > \Product\Production\Nant\NAnt.Core\Task.cs:line 177 > at NAnt.Core.Target.Execute() in c:\Projects\CI Factory\Current > \Product\Production\Nant\NAnt.Core\Target.cs:line 247 > at NAnt.Core.Project.Execute(String targetName, Boolean > forceDependencies) in c:\Projects\CI Factory\Current\Product\Production > \Nant\NAnt.Core\Project.cs:line 897 > at NAnt.Core.Tasks.CallTask.ExecuteTask() in c:\Projects\CI Factory > \Current\Product\Production\Nant\NAnt.Core\Tasks\CallTask.cs:line 143 > at NAnt.Core.Task.Execute() in c:\Projects\CI Factory\Current > \Product\Production\Nant\NAnt.Core\Task.cs:line 177 > at NAnt.Core.Target.Execute() in c:\Projects\CI Factory\Current > \Product\Production\Nant\NAnt.Core\Target.cs:line 247 > at NAnt.Core.Project.Execute(String targetName, Boolean > forceDependencies) in c:\Projects\CI Factory\Current\Product\Production > \Nant\NAnt.Core\Project.cs:line 897 > at NAnt.Core.Tasks.CallTask.ExecuteTask() in c:\Projects\CI Factory > \Current\Product\Production\Nant\NAnt.Core\Tasks\CallTask.cs:line 143 > at NAnt.Core.Task.Execute() in c:\Projects\CI Factory\Current > \Product\Production\Nant\NAnt.Core\Task.cs:line 177 > at NAnt.Core.Target.Execute() in c:\Projects\CI Factory\Current > \Product\Production\Nant\NAnt.Core\Target.cs:line 247 > at NAnt.Core.Project.Execute(String targetName, Boolean > forceDependencies) in c:\Projects\CI Factory\Current\Product\Production > \Nant\NAnt.Core\Project.cs:line 897 > at NAnt.Core.Project.Execute() in c:\Projects\CI Factory\Current > \Product\Production\Nant\NAnt.Core\Project.cs:line 849 > at NAnt.Core.Project.Run() in c:\Projects\CI Factory\Current\Product > \Production\Nant\NAnt.Core\Project.cs:line 934
Thanks for your response. I am using 1.0.76 version of CI Factory and
version 3.5.2 of vault client.
I am aware of breaking changes as per your blog:
http://jayflowers.com/WordPress/?cat=8&paged=4 , which makes sense,
since an upgrade of vault server to 4.1 will require a client upgrade
as well.
Is it working for you with vault 3.5.2?
ps: just downloaded from link you gave, will test soon.. It would be
useful if you could clarify the above points...
About the registration link- it comes up with "IE cannot display this
web page" message. Here is a fiddler log of 2 attempts to the above
link and one attempt at just www.cifactory.org - It appears that the
website is down
GET /joomla/index.php?option=com_registration&task=register HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-ms-application, application/vnd.ms-xpsdocument,
application/xaml+xml, application/x-ms-xbap, application/msword,
application/vnd.ms-excel, application/vnd.ms-powerpoint, application/x-
silverlight, application/x-shockwave-flash, */*
Accept-Language: en-us,en-au;q=0.5
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0;
SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR
3.0.04506; .NET CLR 1.1.4322; .NET CLR 3.5.21022)
Host: www.cifactory.org Proxy-Connection: Keep-Alive
------------------------------------------------------------------
GET /joomla/index.php?option=com_registration&task=register HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-ms-application, application/vnd.ms-xpsdocument,
application/xaml+xml, application/x-ms-xbap, application/msword,
application/vnd.ms-excel, application/vnd.ms-powerpoint, application/x-
silverlight, application/x-shockwave-flash, */*
Accept-Language: en-us,en-au;q=0.5
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0;
SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR
3.0.04506; .NET CLR 1.1.4322; .NET CLR 3.5.21022)
Host: www.cifactory.org Proxy-Connection: Keep-Alive
------------------------------------------------------------------
GET / HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-ms-application, application/vnd.ms-xpsdocument,
application/xaml+xml, application/x-ms-xbap, application/msword,
application/vnd.ms-excel, application/vnd.ms-powerpoint, application/x-
silverlight, application/x-shockwave-flash, */*
Accept-Language: en-us,en-au;q=0.5
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0;
SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR
3.0.04506; .NET CLR 1.1.4322; .NET CLR 3.5.21022)
Host: www.cifactory.org Proxy-Connection: Keep-Alive
e7
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>301 Moved Permanently</TITLE>
</HEAD><BODY>
<H1>Moved Permanently</H1>
The document has moved <A HREF="http://cifactory.org/joomla">here</
A>.<P>
</BODY></HTML>
0
------------------------------------------------------------------
GET /joomla HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-ms-application, application/vnd.ms-xpsdocument,
application/xaml+xml, application/x-ms-xbap, application/msword,
application/vnd.ms-excel, application/vnd.ms-powerpoint, application/x-
silverlight, application/x-shockwave-flash, */*
Accept-Language: en-us,en-au;q=0.5
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0;
SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR
3.0.04506; .NET CLR 1.1.4322; .NET CLR 3.5.21022)
Proxy-Connection: Keep-Alive
Host: cifactory.org
ec
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>301 Moved Permanently</TITLE>
</HEAD><BODY>
<H1>Moved Permanently</H1>
The document has moved <A HREF="http://www.cifactory.org/ joomla/">here</A>.<P>
</BODY></HTML>
0
------------------------------------------------------------------
GET /joomla/ HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-ms-application, application/vnd.ms-xpsdocument,
application/xaml+xml, application/x-ms-xbap, application/msword,
application/vnd.ms-excel, application/vnd.ms-powerpoint, application/x-
silverlight, application/x-shockwave-flash, */*
Accept-Language: en-us,en-au;q=0.5
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0;
SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR
3.0.04506; .NET CLR 1.1.4322; .NET CLR 3.5.21022)
Proxy-Connection: Keep-Alive
Host: www.cifactory.org
------------------------------------------------------------------
GET /groups/static/g2_email_autocomplete.js HTTP/1.1
Accept: */*
Referer: http://groups.google.com/group/CI-Factory/browse_thread/thread/fe32f9... Accept-Language: en-us,en-au;q=0.5
UA-CPU: x86
Accept-Encoding: gzip, deflate
If-Modified-Since: Mon, 28 Jan 2008 20:13:21 GMT
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0;
SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR
3.0.04506; .NET CLR 1.1.4322; .NET CLR 3.5.21022)
Host: groups.google.com
Proxy-Connection: Keep-Alive
Cookie: GTZ=-660;
__utma=118165087.1751574607.1201073456.1203558372.1203630068.6;
__utmz=118165087.1203543913.2.2.utmccn=(referral)|
utmcsr=us.mg1.mail.yahoo.com|utmcct=/dc/launch|utmcmd=referral;
GROUPS_SID=DQAAAG0AAAD4we-
avnfkNs4CylmvWJxcDhPvNchl7YgMPmn5nnTxNaciuj_KKoT_y1k9zxduKJkBmgG8d4tldVaUNU ldOLd93zD66Kugi9gLM5gP6YsBSdViXxFP2jALK6aKkn7GRkDWV8jQ-
nYmTGlYvmcDwo5B; __utmb=118165087; __utmc=118165087;
GSC=0s7oWAoAAACxZFh8hifjWMfK2zfz4IG3;
PREF=ID=fc26a904cc093323:TM=1200368338:LM=1200368338:S=UeyW1NTkTNL5gpNB;
NID=7=PmEyEp4wKjvxqeQGIlpmjy0XLvmPTBgm_gBvyIfu8luZSLjTL9Rlv57TBXVpA5ht4mc20 rxLisgjcVXHU9NaNDxb_YauHQb_xzHscwxuxnfX9bKvGkVdzJatayCmKfu2;
SID=DQAAAGwAAADvSSvdTeCC4AGdnJh5edNXUfF6e8jIblaFnIVATKvHTAnq9HVoTAcGb1YXjsT PhAJIpdVe76WLIlk6D1QSx0L1dFga-
mpqyFg2TAQE7uN1sBPK6U1JXRHURWwdCE8EPLFUpT3M2n1RCGX1t4wWRQ9W
HTTP/1.1 304 Not Modified
Content-Type: text/html; charset=UTF-8
Server: GWS-GRFE/0.50
Date: Thu, 21 Feb 2008 22:03:45 GMT
Here is the build failure log after running "run.bat". I think the
telling line is "System.Exception: The server uses a protocol that is
not supported by this client. " ( My Vault client through CI factory
is 4.x and server is 3.5.2)
CI Factory build failure log for 1.0.1.4 -
[loadtasks] Scanning assembly "Nant.VaultTasks" for
extensions.
SourceControl.Repository.Load:
SourceControl.Repository.Create:
BUILD FAILED
INTERNAL ERROR
System.Exception: The server uses a protocol that is not
supported b
y this client. ---> System.Web.Services.Protocols.SoapException:
1021 : FailServ
iceVersionNotSupported
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadRespo
nse(SoapClientMessage message, WebResponse response, Stream
responseStream, Bool
ean asyncCall)
at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(St
ring methodName, Object[] parameters)
at
VaultClientNetLib.ClientService.VaultService.ValidateServiceVe
rsions(Int32[] clientSupportedVersions)
at VaultClientNetLib.VaultConnection.Login(String
strURLBase, Str
ing strUserLogin, String strPassword)
at VaultClientOperationsLib.ClientInstance.Login(String
urlbase,
String username, String password)
at
VaultClientIntegrationLib.ServerOperations.Login(AccessLevelTy
pe altCommand, Boolean bAllowAuto, Boolean bSaveSession)
--- End of inner exception stack trace ---
at
VaultClientIntegrationLib.ServerOperations.Login(AccessLevelTy
pe altCommand, Boolean bAllowAuto, Boolean bSaveSession)
at VaultClientIntegrationLib.ServerOperations.Login()
at
NAnt.Contrib.Tasks.SourceGearVault.VaultTask.CheckLoggedIn()
at
NAnt.Contrib.Tasks.SourceGearVault.vaultaddrepository.ExecuteT
ask()
at NAnt.Core.Task.Execute() in c:\Projects\CI Factory
\1.0\Product
\Production\Nant\NAnt.Core\Task.cs:line 177
at NAnt.Core.Target.Execute() in c:\Projects\CI Factory
\1.0\Produ
ct\Production\Nant\NAnt.Core\Target.cs:line 247
at NAnt.Core.Project.Execute(String targetName, Boolean
forceDepe
ndencies) in c:\Projects\CI Factory\1.0\Product\Production\Nant
\NAnt.Core\Projec
t.cs:line 897
at NAnt.Core.Tasks.CallTask.ExecuteTask() in c:\Projects
\CI Facto
ry\1.0\Product\Production\Nant\NAnt.Core\Tasks\CallTask.cs:line 143
at NAnt.Core.Task.Execute() in c:\Projects\CI Factory
\1.0\Product
\Production\Nant\NAnt.Core\Task.cs:line 177
at NAnt.Core.Target.Execute() in c:\Projects\CI Factory
\1.0\Produ
ct\Production\Nant\NAnt.Core\Target.cs:line 247
at NAnt.Core.Project.Execute(String targetName, Boolean
forceDepe
ndencies) in c:\Projects\CI Factory\1.0\Product\Production\Nant
\NAnt.Core\Projec
t.cs:line 897
at NAnt.Core.Project.Execute() in c:\Projects\CI Factory
\1.0\Prod
uct\Production\Nant\NAnt.Core\Project.cs:line 849
at NAnt.Core.Project.Run() in c:\Projects\CI Factory
\1.0\Product\
Production\Nant\NAnt.Core\Project.cs:line 934
Please send bug report to ci-factory@googlegroups.com.
This exception you are reporting (System.Exception: The server uses a
protocol that is not supported by this client.) is what the VAULT
client reports if/when you have a mismatch between the vault client
version and the vault server version. You can confirm this by
searching for this msg on the SourceGear forums @ http://support.sourcegear.com
There is a complication that is introduced by the mismatch between
your vault client and your vault server that is perhaps not terribly
obvious: the VAULT tasks in CIFactory are dependent on more than just
the VAULT client installed on your CIFactory server -- they are also
dependent on the 'matching' version of the NANT task dll for VAULT.
The Vault client itself is (supposed to be) able to down-grade itself
(i.e., a later Vault client version is supposed to be able to
communicate with a prior-version Vault server) just fine but I know
for certain that I have never tested to know if the same is true of
the Vault NAnt task library that ships w the Vault client (and is also
actually shipped with the CIFactory install).
When I first started CIFactory with Vault (this was probably about
0.8.xxx or so of CIFactory) I too had this issue (same error message)
with the CIFactory Vault-repositoty interaction. I eventually solved
it by matching the VAULT nant task dll in CIFactory (which is what the
CIFactory package is using) to the version of my Vault client --
EXACTLY--. A point-release mis-match (e.g. betw 3.5.1 and 3.5.2) was
enough to rasie this exception.
To isolate this issue, my recommendation is that you write a quick
NAnt script that just tries something simple with the Vault NAnt task
library (there are examples of simple tasks on the sourcegear website)
to ensure that all works OUTSIDE of CIFactory. This will help you
better determine which pieces-parts needs to be what vsersion(s) to
make everything work properly.
I'm assuming that if you are sticking with 3.5.2 on your Vault server
its because you decided not to upd to 4.x for financial reasons, but I
would strongly recommend you reconsider that choice (and no, I don't
work for or have sourcegear stock) -- the whole CIFactory package for
VAULT makes a broad assumption that everything (vault client, vault
server, and vault nant task library) are all the same version. You
MAY be able to get this to work with all differing versions of these
parts, but its frankly an 'unsupported' (or at least untested <g>)
configuration.
Hope this helps and let me know if yoy need further assistance.
-Steve B.
(partial) contributor of the current Vault pkg for CIFactory
On Feb 21, 6:15 pm, rasane <sras...@gmail.com> wrote:
> Here is the build failure log after running "run.bat". I think the
> telling line is "System.Exception: The server uses a protocol that is
> not supported by this client. " ( My Vault client through CI factory
> is 4.x and server is 3.5.2)
> CI Factory build failure log for 1.0.1.4 -
I had never used nant before this morning and did not know of the
existence of nant package from Vault until now.
So I got the Nant package for Vault 3.5.2 (http://
download.sourcegear.com/Vault/4.0.2.15802/
VaultClientAPI_4_0_2_15802.zip from http://www.sourcegear.com/vault/downloads2.html)
and played around it today. So I could get some sample scripts going
with respect to connecting with my repository.
Then I got a little ambitious and replaced the contents C:\Tools\CI
Factory\Packages\Vault\bin directory with the 3.5.2 version of nant
dlls from vault.
This ended up with the following error:
=========begin build log=============
CleanExtraXmlNs:
[loadtasks] Scanning assembly "NAnt.VaultTasks" for
extensions.
SourceControl.Repository.Load:
SourceControl.Repository.Create:
BUILD FAILED
c:\Projects\Quicksilver\Current\Build\Packages\Vault
\SourceControl.T
arget.xml(137,6):
Invalid element <vaultsetloginoptions>. Unknown task or
datatype.
Total time: 0.1 seconds.
BUILD FAILED
======end build log========
That seems to make sense, since vault 3.5.2 does not have that task in
its namespace.
Yes, as you have discovered, its a bit more tricky than just replacing
the DLL :)
The VAULT Nant task library API made several changes between 3.5.x and
4.x and you have indeed bumped into one of the API calls that was
added in the 4.x task library but isn't present in the 3.x version.
The package that is in CIFactory only explicitly supports VAULT 4.x.
This was a sort of a 'design decision' on the part of the few of us
that contributed this package and participated in its refinement --
since we were all using Vault 4.x, doing this made perfect sense for
*us* tho as you point out this has left Vault 3.x users 'designed-out'
of adopting CIFactory without some more work on their end.
Since there are actual *behavior* differences (via the API changes)
between these versions, its more complex to change the Vault Package
to support Vault 3.x users than it might first appear; for CIFactory
to work with a source code provider, there are a (relatively) large
number of behaviors that a SCC package needs to provide and any mods
to the SCC package need to still provide these 'hooks' so that the
rest of CIFactory can properly interact with the SCC package to get it
to do its work.
You will definitely find that you need to mod the scripts for the
Vault package in addition to replacing the DLL to go 'back' to
v3.5.x. I might recommend:
* go back and download the last beta version that supported Vault
3.5.x (seems to me this was like CIFactory 0.65 or so but I may be
wrong)
* diff the vault package scripts from that version with those of the
latest vault package that supports Vault 4.x
Splice the vault tasks from the CIFactory 0.65 into the scripts for
the current version; the current vault package has the right 'surface
area' that any SCC provider package needs in order to work properly
with the latest CIFactory release but the prior vault tasks scripts
contains the 'proper' commands to interact with the 3.5.x versions of
vault so some combination of these two blended together *should* be
able to work.
I know this is less than ideal as an approach, but its the one that it
seems to me is most likely to result in success for you.
Sorry~!
BTW, if you do get this to work maybe send the package back to Jay so
he can incl. it as an optional external download (a drop-and-replace
set of files that can supplant the distributed Vault package already
in CIFactory with a version that supports Vault 3.3.x).
Hope this helps some,
-Steve B.
On Feb 21, 11:07 pm, rasane <sras...@gmail.com> wrote:
> I had never used nant before this morning and did not know of the
> existence of nant package from Vault until now.
> So I got the Nant package for Vault 3.5.2 (http://
> download.sourcegear.com/Vault/4.0.2.15802/
> VaultClientAPI_4_0_2_15802.zip fromhttp://www.sourcegear.com/vault/downloads2.html)
> and played around it today. So I could get some sample scripts going
> with respect to connecting with my repository.
> Then I got a little ambitious and replaced the contents C:\Tools\CI
> Factory\Packages\Vault\bin directory with the 3.5.2 version of nant
> dlls from vault.
> This ended up with the following error:
> =========begin build log=============
> CleanExtraXmlNs: