teamcity

A solution needed for referencing Nuget packages from projects in the same solution

人盡茶涼 提交于 2019-12-06 01:06:50
I have a single solution full of projects that are to be shared amongst my organization as general nuget packages. The solution is encompassed by one git repository and we have TeamCity running our builds for us, although we are not overly advanced in that we manually kick off the Teamcity builds when we are ready to generate/publish a new Nuget package for a given project in the solution, every project has its own TeamCity build configuration. When built, the projects generate nuget packages via the .csproj <project/> tag: GeneratePackageOnBuild we also control the versioning via version tags

Could not load file or assembly Antlr3.Runtime.dll

最后都变了- 提交于 2019-12-06 01:00:20
问题 We were using TeamCity for our Build server, .Net Framework 4 and ASP.NET MVC2 and NHibernate Our build server recently went offline thanks to Amazon EC2 issue recently. We are setting a new build server up. However, even though nothing changed recently in our codebase, Teamcity gives following error. ResGen error RG0000: Could not load referenced assembly "C:\TeamCity\buildAgent\work\1e7706dcd512f467\xxx\Lib\Antlr3.Runtime.dll". Caught a FileLoadException saying "Could not load file or

Breaking the build in TeamCity if .NET Core unit tests running under Docker have code-coverage less than 90%

给你一囗甜甜゛ 提交于 2019-12-05 23:16:25
I have recently been looking at Docker, and how I can use TeamCity to run .NET Core unit tests in Docker containers as part of my build pipe-line. I add this as the final line in my Dockerfile to be able to run tests: ENTRYPOINT ["dotnet", "test", "--verbosity=normal"] These Dockerfiles are then referenced in compose files which TeamCity builds and runs using docker-compose in the command line. I have this working successfully now. Next challenge is to break the build if unit/integration test coverage is less than 90% - or some other value - no arguments about this please! I'm successfully

Can you configure TeamCity “Artifacts” to be checked back into source control?

假如想象 提交于 2019-12-05 23:13:56
I would like to have TeamCity Artifacts be checked back into source control. I have used TFS Integrator before. So I am used to its approach where, through config, it can check in the output builds back into source control. Then when people do a get they will receive these artifacts. Or is there a completely different way of achieving this with TeamCity? The two ways I can think of are VCS Labeling specify a path in your working directory to label and the location relative to the trunk to check it in. jetbrains explains it here /project/trunk/dist=>/project/tags/%system.build.number% from the

Running IntelliJ inspections via Maven/TeamCity

假如想象 提交于 2019-12-05 22:36:34
I have a Maven project, and I'm trying to configure TeamCity to run IntelliJ's inspections on it. TeamCity's documentation refers me to IntelliJ's documentation , but I didn't find anything useful there. Can you refer me to how do you configure it? CrazyCoder The documentation was incorrect, you can't reference inspections profile directly from the pom.xml . Thanks for noticing, we've fixed it. In case of the Maven project you need to open it in IDEA, define the inspections profile, export the profile into XML file and commit it into the version control with the project. In the TeamCity

TeamCity global version per PROJECT (not configuration)

孤者浪人 提交于 2019-12-05 21:49:27
The Build number property in TeamCity is unique for each build configuration. I'd like to have a single counter that will be used across all different build configurations (to count how many times in total i've built the product). Does this make sense? (it does to me). How can this be done, if the property is stored per configuration? Makes perfect sense. I think the Autoincrementer plugin is what you're looking for. It lets you have a single builder counter across any number of build configurations. We use it so nightly build numbers are shared with checkin-builds. 来源: https://stackoverflow

Auto Branching in svn using teamcity

我是研究僧i 提交于 2019-12-05 20:37:32
I wonder whether it is possible to do auto branching using Teamcity. As currently I am automatically publishing web applications using web deploy and the only thing left is branching as we usually take a branch in svn and then publish the next version. Can any one please advise if it is possible and how to do it. Open TeamCity Version Control Settings for your release build. Set "VCS labeling mode" to "Successful only" and specify an appropriate labeling pattern. E.g. release-build-%system.build.number% . At the top of this page, enter the checkout rule +:/trunk => . then click edit to open

Pass argument with quotes to PowerShell script via TeamCity

空扰寡人 提交于 2019-12-05 19:15:05
We're calling a PowerShell script via TeamCity. We want to pass a parameter which contains quotes, e.g.: Build step : PowerShell Script file : foo/bar/my.ps1 Script arguments : -MyParam "%system.MyParam%" Where system.MyParam is set to <xml><elem attr="value"></elem></xml> . Unfortunately, this fails with: Cannot process argument transformation on parameter MyParam . Cannot convert value " <xml><elem " to type " System.Xml.XmlDocument ". Error: "Unexpected end of file while parsing Name has occurred. Line 1, ..." Anybody knows how to correctly pass double quotes? What I've tried so far and

Strange NullPointerException in maven-resources-plugin

时间秒杀一切 提交于 2019-12-05 17:59:21
About twice a day we get a NullPointerException in our build: [06:44:23]: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.5:resources (default-resources) on project spring-lib: Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.5:resources failed. NullPointerException -> [Help 1] [06:44:23]: org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.5:resources (default-resources) on project spring-lib: Execution default-resources of goal org.apache.maven

String Interpolation will not build on TeamCity

萝らか妹 提交于 2019-12-05 17:58:18
问题 For an old project I support, I've been performing some modernization. That has included various things: bumping the .NET Framework up to 4.6, and other upgrades. One of the things we have some leeway to do is make syntactic upgrades, provided we don't change business logic. We've also recently installed Visual Studio 2015, and the latest and greatest ReSharper, which revealed that "String Interpolation" is now something we can do in our code. For those who don't know, string interpolation is