IT:AD:TeamCity:Hg
PreRequisites
- Install TortoiseHg
- Easy to forget (we're so used to having it installed locally, that one forgets that to do a CheckOut, TeamCity will need to have Hg available…)
- Ensure you've configured it to get through the corporate proxy if any (IT:AD:Mercurial) * for the account TC is running under (eg:
DEV\258-TeamCity-Svc
). * *Tip: that's one of the reasons one has to ensure that the Website is not running underLocalSystem
account – it has no %UserProfile% directory to do this step in…- The account has to be a CORP one, not a DEV one…
Administration/Edit Build Configuration/Edit VCS Root
- Edit VCS Root:
- Type of VCS:
Mercurial
- VCS Root Name:
null
- HG Command Path:
c:\Program Files\TortoiseHg\Hg.exe
%ProgramFiles%
doesn't sem to work- It's
TortoiseHg
– notHgTortoise
…
- Pull changes from: https://bitbucket.org/skysigal/test
- Branch name:
null
- Cone repository to:
null
- Use Cuncompressed transfer:
false
- UserName:
skysigal
- Password:
XXXXXX
- Build Step
- Runner Type:
MSBuild
- Build File Path:
- Trigger
- VCS Trigger =
60 seconds quite
References:
NuGet
Installation
- Procedure:
- Find TeamCity Data directory
- C:_System\TeamCity.BuildServer\plugins\
- Stick downloaded zip there
- Stop TeamCity server
- Start TeamCity server
- You'll see a new tab on Server Administrator page
- Using NuGet Install option from behind Proxy failed.
- Instead:
- chose
Custom
and defined a path. That said space inc:\Program Files\
caused it to fail. Worked when installed toc:\Nuget\
. Might have worked as well if I chosen an %env….% defined path. - Found this alternate Workaround mentioned on web: http://bit.ly/tfQEHR that led to http://bit.ly/sEvdSG
Packaging
- Worked:
XAct.Core.nuspec
was placed besideXAct.Core.csproj
- TeamCity settings:
- Specification file:
XAct.Core\XAct.Core\XAct.Core_Debug.nuspec
- Base Directory=
XAct.Core\XAct.Core
- Path = (Custom)
c:\Nuget\Nuget.exe
- Cons:
- A lot of custom work in the *.nuspec
- Issues:
- Using
XAct.Core.csprog
I get:- pack: …The imported project “
...\work\f5a3a0936d0bc94c\xact.core\.nuget\NuGet.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
” - Note: The include statement in question is:
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" />
so it appears that the NuGet build step thinks the solutionDir is …?!
* References:
Version Number
* As usual, a huge bitch.
- Curently am using the AutoIncrementor Plugin to keep the number synced across builds. It really isn't good enough.
- Am using %autoinc.CSFFXActLib% in the format string.
- Saw this: interesting http://stackoverflow.com/a/7427933 but don't know how to put it to use…
- According to http://bit.ly/sIRmHB:
- “1.0.{build.vcs.number.1}”
- But that gives the hash and fails at build.