teamcity-9.0

Viewing TeamCity service messages

老子叫甜甜 提交于 2020-07-09 08:14:49
问题 I'm troubleshooting a build step in TeamCity 9.0.4. The problem seems to lie within the service message output. Is it possible to view these after the build has completed? They are not included in the build log. The documentation on service messages simply says In order to be processed by TeamCity, they should be printed into a standard output stream of the build . https://confluence.jetbrains.com/display/TCD9/Build+Script+Interaction+with+TeamCity (To some extent the service messages can be

Pass argument with quotes to PowerShell script via TeamCity

三世轮回 提交于 2020-01-23 08:02:29
问题 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

Build dependencies and local builds with continuous integration

。_饼干妹妹 提交于 2020-01-15 13:33:52
问题 Our company currently uses TFS for source control and build server. Most of our projects are written in C/C++, but we also have some .NET projects and wouldn't want to be limited if we need to use other languages in the future. We'd like to use Git for our source control and we're trying to understand what would be the best choice for a build server. We have started looking into TeamCity, but there are some issues we're having trouble with which will probably be relevant regardless of our

TeamCity - AssemblyInfoPatcher not working, error is logged

我与影子孤独终老i 提交于 2020-01-15 05:05:29
问题 The AssemblyInfoPatcher build feature isn't working. Some files are patched and some are not. Assembly file version was specified, but couldn't be patched in file D:\TeamCity\Agent\buildAgent\work\6afd998e316c631f\La\Di\Da\Properties\AssemblyInfo.cs. Is necessary attribute missing? I thought it was because it was 1.0.* since one of the failed files had this format, and one of the successful ones had the default 1.0.0.0 format, so I changed the attribute to 1.0.0.0 across the entire solution

TeamCity - Specifying the previous build version as build step parameter

…衆ロ難τιáo~ 提交于 2020-01-06 03:35:27
问题 I have a project in TeamCity where one of the build steps calls an exe with parameters consisting of currentReleaseId/PreviousReleaseID. Current release is simple enough because I can just use %build.counter% built into TC. Does anyone know how can I get the %build.counter% - 1 id to pass as the second param? Current setup: TeamCity Build Step Run: Executable with parameters Command executable: \CIS\E$\PerformanceTracker\ConsoleApp\PerformanceTracker.ConsoleApp.exe Command parameters: %build

How to run a build step conditionally in TeamCity

妖精的绣舞 提交于 2020-01-02 00:50:14
问题 This is a more generic version of this question: How to run a build step on a specific branch only? For example, I can use a PowerShell script to run MSBuild if '%teamcity.build.branch.is_default%' -eq 'true' or if '%teamcity.build.branch%' -eq 'master' but then I will miss the collapsible log that comes with the TeamCity MSBuild build runner. Isn't there any easier way to conditionally run a build step? 回答1: It is not possible to execute build step based on condition. Vote for the related

How do I set up a TeamCity VCS label (SVN) when using a checkout rule?

假如想象 提交于 2019-12-24 16:46:18
问题 How do I label my SVN project with TeamCity VCS labeling if I am using a checkout rule? I read the checkout rule docs, but I'm having a hard time understanding the relationship between VCS labeling and checkout rules in TeamCity. My SVN structure looks like: https://my.internalsvn.com/(...)/myproject/branches/gattaca-dev https://my.internalsvn.com/(...)/myproject/tags https://my.internalsvn.com/(...)/myproject/trunk In TeamCity, my VCS root is configured to: https://my.internalsvn.com/(...)

Runner type : SSH exec not found in teamcity

痞子三分冷 提交于 2019-12-24 06:13:49
问题 I am new to Teamcity. I am trying to do some Build configurations on it. As of now I did some configurations but when I am trying to add a new build with Runner type: SSH exec, I am not getting this build step in the drop down. You can see in below image If there are any configuration I need to follow to get SSH EXEC in Teamcity build step please let me know. 回答1: SSH exec runner is available inside Deployer plugin. You can download the latest build from here. To install it, drop the archive

Command line upload of apk to google playstore

牧云@^-^@ 提交于 2019-12-24 04:53:09
问题 I am using TeamCity as my CI server. I want to add a build step such that the generated signed apk of an android project should get uploaded to google playstore automatically. Are there any API available for the same. Is there any terminal commands available for the same. I referred API to automatically upload apk to Google Play? but found no recent activity on uploading via API or command line. Please help me out. 回答1: The Gradle Android Publisher plugin does exactly that, as explained in

How to set build agent priority in TeamCity?

▼魔方 西西 提交于 2019-12-23 12:35:34
问题 I have two agents that can build my configuration. I've set up two because I sometimes need to do two simultaneous builds. How can I set build agent priorities to force TeamCity choose specific agent if both are idle and available? Now it chooses agent randomly or by some unknown factors... 回答1: You can filter which agents are used but I'm not sure you can specify which idle to agent to use. If you are worried about TeamCity using the fastest agent it should do this automatically. The