The issue still exists even if i remove the space in the build args property
On Feb 7, 7:52 pm, capt edgar <[email protected]> wrote: > Hi Craig > > The only space was in the build args property > <buildArgs>-D:Server=$[TestServer] -D:TempFolder=$[TempFolder]</ > buildArgs> > > which i removed as follows > <buildArgs>-D:Server=$[TestServer]-D:TempFolder=$[TempFolder]</ > buildArgs> > > and then run it and now what it is doing is TestServer parameter as > "TESTSERVER01T-D:TempFolder" > > On Feb 7, 7:39 pm, "Craig Sutherland" <[email protected]> > wrote: > > > > > In your posted example below there is a space between "$" and > > "[TempFolder]". When I took this space out it appears to work. > > > Can you check if there is a space in your original config? > > > Craig > > > -----Original Message----- > > From: [email protected] [mailto:[email protected]] On > > > Behalf Of capt edgar > > Sent: Tuesday, 8 February 2011 8:06 a.m. > > To: ccnet-user > > Subject: [ccnet-user] Dynamic Parameters > > > Hi there > > > I'm having problems passing 2 dynamic parameters into my cruisecontrol > > project file. Find below my code in the CCNEt.config file > > > <project name="01. Test Dynamic Parameters"> &InitialState_Stopped; > > <description>Test Dynamic Parameters - C:\dev\Buildworkspace1\</ > > description> > > <workingDirectory>C:\dev\Buildworkspace1</workingDirectory> > > <parameters> > > <selectParameter name="TestServer"> > > <description>Deploy To Test Server</description> > > <display>Deploy To</display> > > <allowedValues> > > <value>TESTSERVER01T</value> > > <value>TESTSERVER02T</value> > > <value>TESTSERVER03T</value> > > <value>TESTSERVER04T</value> > > </allowedValues> > > <default>TESTSERVER01T</default> > > </selectParameter> > > <selectParameter name="TempFolder"> > > <description>Publish To Which Temp Folder</description> > > <display>Publish To This Temp Folder</display> > > <allowedValues> > > <value>TEST1Dynamic</value> > > <value>TEST2Dynamic</value> > > <value>TEST3Dynamic</value> > > </allowedValues> > > <default>TEST1Dynamic</default> > > </selectParameter> > > </parameters> > > > <tasks> > > <exec> > > <executable>C:\dev\Buildworkspace1\DotNet\DynamicParam > > \Test.bat</ > > executable> > > <buildArgs>-D:Server=$[TestServer] -D:TempFolder=$ > > [TempFolder]</ > > buildArgs> > > <baseDirectory>C:\dev\Buildworkspace1\DotNet > > \DynamicParam\</ > > baseDirectory> > > <buildTimeoutSeconds>3600</buildTimeoutSeconds> > > </exec> > > </tasks> > > </project> > > > what the executable bit should do is call the test.bat file with 2 > > parameters to choose from values of "Test Server" and "TempFolder" > > > using the above 2 values the test.bat file has the following commands > > 1) set tempfolder=c:\deploy\%2\%date:/=_%_%time:~0,2%_%time:~3,2%_ > > %time:~6,2% > > 2)"C:\Program Files (x86)\Beyond Compare 2\BC2.exe" /SILENT @BCScript.txt %1 > > > where %2 should be the value i choose from "TempFolder" and %1 should be the > > value i choose dynamically from "TestServer" > > > instead it is using only "Test Server" parameter only and not the second > > one. > > > is it possible to pass 2 select parameter to the test.bat file in > > cruisecontrol in the way i have done above and if so why the second > > parameters doesn't get passed > > > Please advice- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text -
