teamcity

How to use StyleCop with TeamCity

六月ゝ 毕业季﹏ 提交于 2019-11-29 21:47:42
Has anyone had any success with running StyleCop from TeamCity? I know StyleCop supports a command line mode, however i am not sure how this will integrate into the report output by TeamCity. I've checked out this plugin found here: https://bitbucket.org/metaman/teamcitydotnetcontrib/src/753712db5df7/stylecop/ However could not get it running. I am using TeamCity 6.5.1 (latest). I don't know how familiar you are with MSBuild, but you should be able to add a new Build Step in TC 6 and above, and set MSBuild as the build runner, and point it to a .proj file which does something similar to the

How can I define the teamcity['build.number'] property in gradle from command line

我的未来我决定 提交于 2019-11-29 21:34:53
问题 Is there a way to define teamcity['build.number'] property from command line? I tried -Pteamcity.build.number=1 but it didn't work. I have a build.gradle file with this task in it: distTar { baseName = project.name+'.'+ project.version+'.'+ System.getProperty("system.rnf.brach_name")+'.'+ teamcity['build.number']+'.'+ teamcity['build.vcs.number.1'] archiveName = baseName+'.tar' into(baseName) { from '.' include 'config/*' include 'run-script/*.sh' } } It works on the build server, but it

MSBuild - How to build a .NET solution file (in an XML task script) from pre-written command line commands

…衆ロ難τιáo~ 提交于 2019-11-29 21:04:06
I have been studying MSBuild as I have the need to automate my development shop's builds. I was able to easily write a .BAT file that invokes the VS command prompt and passes my MSBuild commands to it. This works rather well and is kinda nifty. Here is the contents of my .BAT build file: call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\vcvars64.bat" cd C:\Sandbox\Solution msbuild MyTopSecretApplication.sln /p:OutputPath=c:\TESTMSBUILDOUTPUT /p:Configuration=Release,Platform=x86 pause ^ This works well but I now have the need to use the MSBuild task for TeamCity CI. I have

TeamCity forgotten admin password - where to look?

◇◆丶佛笑我妖孽 提交于 2019-11-29 20:23:05
I need to recover/reset the admin password for JetBrain's TeamCity . I have full RDP access to the server so no problems there. It's just been 2 months since we used it so now I have forgotten my login - my usual ones don't work. It is setup without a database at the moment, so was hoping the usernames would just be in a file somewhere, but no luck finding it so far. Sebastien Lachance In case none of those works, see http://sebastienlachance.com/post/Resetting-TeamCity-Password.aspx . Open a command prompt and go to \webapps\ROOT\WEB-INF\lib folder. Now type the following : ..\..\..\..\jre

Automate Selenium tests on TeamCity Continuous Integration server

匆匆过客 提交于 2019-11-29 20:21:59
I have a Visual Studio solution which includes a Test project having Selenium Tests. (I already have a compilation build triggered by version control checkin (Mercurial)) But I want to have a separate (nightly) Build Configuration which runs the Selenium tests, ideally under MSTest. I assume I need Selenium Server for this? If so, what's the best way to fire it up before running the tests? Should I do this from the MSBuild script or use a Build Step from Team City itself? Do I need to fire up Cassini\WebDev.WebServer first of all so the following can run: selenium = new DefaultSelenium(

How to stop “Just In Time Debugging” messages blocking a buildserver

落花浮王杯 提交于 2019-11-29 20:10:58
Our buildserver (TeamCity, much recommended), runs our a whole bunch of testsuites on our finished c++ program. Once in a whole, a test causes our program to crash, often bringing up a VisualStudio dialog offering me to JustInTime debug the crash. The dialog stops the buildserver from progressing. Instead of the build marked as failed, it just hangs. I've turned off the Just In Time debugging feature in VisualStudio, but when it's turned off, you still get a message "Couldn't JustinTime Debug this, you can turn it on in the options". Does anybody know of a way to ensure that any unhandled

How do I exclude types and methods from being covered by dotCover in TeamCity?

家住魔仙堡 提交于 2019-11-29 19:50:13
I've got an existing C# 4 project which I've checked the test coverage for by using TestDriven.Net and the Visual Studio coverage feature, i.e. Test With -> Coverage from the context menu. The project contains some code I don't want covered, and I've solved that by adding the [ExcludeFromCodeCoverage] for those types and methods. We've just upgraded TeamCity to 6.0.3, and I've added dotCover coverage to the NUnit build step. I've managed to remove coverage for external assemblies such as NHibernate in the "Filters" section (by explicitly state the assemblies for which I want coverage), but I'm

Teamcity prepare release failed due to project name got appended to FETCH URL

萝らか妹 提交于 2019-11-29 18:07:06
I am doing prepare release through Temcity using release-plugin I got below error [10:46:19][Step 2/3] [INFO] Executing: /bin/sh -c cd /home/tcagent/buildAgent/work/860f91e0ad4abff2 && git push https://username:****@testurl.com:8081/scm/myrepo/my-project-name.git/**buildConfName** refs/heads/release/release-name:refs/heads/release/release-name [10:46:19][Step 2/3] [INFO] Working directory: /home/tcagent/buildAgent/work/860f91e0ad4abff2 [Step 2/3] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project **my-project-name**: Unable to commit

How to run a TeamCity build only for tags?

旧时模样 提交于 2019-11-29 17:32:33
问题 I have several projects that produce NuGet packages that I publish to an internal server. We're using semantic versioning, and using tags in our Git repository to control the version numbers. I'm tagging like this: git tag -a v1.0.0 -m "tagged" And, during the TeamCity build, I run git describe --long , which produces an output like this: v1.0.0-0-ge9c047d The fourth number in the output is the number of commits after the tag. The 0 here means that no commits have been made since the tag. I

Teamcity not DLL's for some NUnit Test projects

陌路散爱 提交于 2019-11-29 17:22:55
问题 I get this error when running my Moq tests through Teamcity 5 Test(s) failed. System.IO.FileNotFoundException : Could not load file or assembly 'Moq, Version=3.1.416.3, Culture=neutral, PublicKeyToken=69f491c39445e920' or one of its dependencies. The system cannot find the file specified. at MyCode.Tests.SomeHandlerTests.Setup() The tests run fine on my local; they just fail on the build server. I made sure the assemblies are in the Bin (looking at them now over RDP just be double sure). 回答1: