teamcity

Obtaining text output from Fortify sourceanalyzer command line

淺唱寂寞╮ 提交于 2019-12-07 19:03:08
问题 Related to question: Fortify command line usage I would like to perform a nightly Fortify scan of my .NET solution, triggered by TeamCity's command line runner. I want to post up my own custom summary of the results to a web page. The key information I want is the number of issues per level of criticality. I have previously used the -f command-line switch for use with the Audit Workbench client, but the resulting .FPR file looks difficult to parse and interpret manually. I'm using Fortify

Team City build fail not returning fail code

元气小坏坏 提交于 2019-12-07 18:50:15
问题 I have a powershell script that runs Invoke-MsBuild on TeamCity. During a build I saw a "WARNING: FAILED to build" one of the projects. However teamcity at the end said the build was successful. How can I force TC to exit with an error code or at least report the build failed. Here is part of the build script. Write-Host "Attempting to build $SolutionPath" $buildSucceeded = Invoke-MsBuild -Path $SolutionPath -MsBuildParameters $MSBuildParams -BuildLogDirectoryPath "$BuildPath\Logs"

TeamCity push feature branches to master branch

喜你入骨 提交于 2019-12-07 16:44:39
问题 Is there any way to push successfully built feature branches to another branch? I'd like to have something like that: Git repository (Gitorious/GitHub whatever). Branches: master (current project's code) quality-assurance (branche where code waits for QA) feature-branches (many remote branches, where devs can develope their features) Developer should have only read access to master and read/write to his feature branches QA read/write quality-assurance branch TeamCity - read/write master,

Mercurial workflow with selective feature deployment and continuous integration

爷,独闯天下 提交于 2019-12-07 16:31:42
问题 for a team of 12 developers, can you help me determine a process and workflow for building and deploying a product using mercurial for source control and team city for build server? we have a system that tracks issues and enhancement requests. most of these are pretty small bugs and enhancement worked on by one developer in a timeframe of a day or two up to a week. what i want to accomplish is to have business persons and IT management negotiate priorities for tickets on which developers work

TeamCity global version per PROJECT (not configuration)

橙三吉。 提交于 2019-12-07 15:57:32
问题 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? 回答1: 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

Auto Branching in svn using teamcity

随声附和 提交于 2019-12-07 15:39:46
问题 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. 回答1: 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-

TeamCity MSTest and TestList?

不羁岁月 提交于 2019-12-07 15:20:12
问题 In order to automate unit tests on TeamCity I had to create a test list in my vsmdi configuration file indicating that every test is part of a list I called CompleteCoverage . I dislike this a lot because in order to auto-run new tests I'll have to remember to include them on this list. Is there some way to run every test in the solution using TeamCity and MSBuild (other than explicitly referencing the path to the output test assembly)? Should I just drop MSTest and go for NUnit ? 回答1: I'm

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

冷暖自知 提交于 2019-12-07 14:07:07
问题 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

Why does TeamCity miss a reference and fails compilation?

与世无争的帅哥 提交于 2019-12-07 11:41:48
问题 I'm completely new to TeamCity and I'm using a simple Visual Studio 2008 solution to learn it. My solution has 2 projects: ConsoleApplication1 and ClassLibrary1. ConsoleApplication1 has a reference to ClassLibrary1. The solution compiles with no problem in VS directly. However, when I try to compile the same solution in TeamCity, it fails with error: Program.cs(13, 25): error CS0246: The type or namespace name 'ClassLibrary1' could not be found (are you missing a using directive or an

Cannot get TeamCity to authenticate to GitHub with Default Private Key

家住魔仙堡 提交于 2019-12-07 11:25:36
问题 I'm trying to get TeamCity to build my private GitHub repository. I'm able to successfully get my VCS root to pass the connection test when I explicitly set the path to the key file; however, despite lots of Googling, I can't get it to work when I use the 'Default Private Key' option. I get com.jcraft.jsch.JSchException: Auth fail . Both my TeamCity server and build agent are running as a user called ( gasp ) teamcity , and the contents of C:\users\teamcity\.ssh\ include both a config and a