teamcity

TeamCity - Re-running a specific build step

孤者浪人 提交于 2019-12-10 14:14:24
问题 For arguments sake if you've configured 3 builds steps and you want to re-run the 3rd step in isolation (not run the prior 2 steps), how would you achieve this? 回答1: No, not possible....unless you temporarily disable the earlier steps in admin, and run the build again. http://confluence.jetbrains.com/display/TCD7/Configuring+Build+Steps 回答2: You could split your 3 build steps into 2 build configurations with a snapshot dependency between the two. The first build configuration would contain

how to run hg recover command on a remote repository

冷暖自知 提交于 2019-12-10 14:05:06
问题 I am getting the following error while running build in teamcity. Failed to collect changes, error: '"C:\Program Files\TortoiseHg\hg.exe" --config ui.interactive=False pull https://test:******@hg.myrepo.co.uk/terriff' command failed. stdout: pulling from https://test:***@hg.myrepo.co.uk/terriff searching for changes stderr: abort: abandoned transaction found - run hg recover! I already tried to delete the build directories on agent machines but still getting same error. Also tried to run hg

Teamcity NuGet Repository corruption

坚强是说给别人听的谎言 提交于 2019-12-10 13:52:33
问题 So, my google-fu is weak... I could not find another instance of my errors. I've been having problems with my teamcity nuget repository since a day. NuGet downloads from the repo fail with unexpected EOF's or corrupt package warnings. As far as I can tell this is not a hardware failure, the vm, and vm-host do not report disk errors. To add insult to injury the teamcity logfile 'teamcity-javaLogging-2013-07-17.log' grows unbounded (+3GB in the time to type this, where 10 MB a day is normal)

When using NuGet Pack is it possible to specify the package name without a nuspec file?

最后都变了- 提交于 2019-12-10 12:54:52
问题 I am trying to create a nuget package for a .csproj file but want the package name to be different from the csroj file (which it is by default) and I don't want to specify a .nuspec file. Is there a way of doing this? I can only see a version name override option on the command line options and not a package name override option. I am doing this in TeamCity but this is besides the point. I am thinking I need to pass additional parameters to the NuGet pack command? Thanks, 回答1: Nuget command

How do you get the response from a 404 page requested from powershell

試著忘記壹切 提交于 2019-12-10 12:52:26
问题 I have to call an API exposed by TeamCity that will tell me whether a user exists. The API url is this: http://myteamcityserver.com:8080/httpAuth/app/rest/users/monkey When called from the browser (or fiddler), I get the following back: Error has occurred during request processing (Not Found). Error: jetbrains.buildServer.server.rest.errors.NotFoundException: No user can be found by username 'monkey'. Could not find the entity requested. Check the reference is correct and the user has

TeamCity and git repository with Visual Studio Team Services

ぐ巨炮叔叔 提交于 2019-12-10 12:35:17
问题 I'm trying to configure TeamCity to build the project located on the Visual Studio Team Services with Git as VCS. The project contains spaces in the URL, so it looks like: https://mysrv.visualstudio.com/DefaultCollection/_git/some%20project Clone from Visual Studio 2013 works fine, from command line too. When I'm configuring VCS Root in TeamCity and press the Test Connection button it says that connection established, but when I'm trying to run the build TeamCityt reports that there is no

CSC error CS0006: Metadata file 'SonarAnalyzer.dll' could not be found

半城伤御伤魂 提交于 2019-12-10 11:56:39
问题 I'm having random problems during my build process in TeamCity. I've got two configurations: First for Rebuild + Unit test. Second as artifact dependency, with SonarQube analyzer. When Teamcity is executing first configuration, I'm receiving random error messages every 5-10 builds: CSC error CS0006: Metadata file 'E:\TeamCity\buildAgent2\temp\buildTmp\.sonarqube\resources\0\Google.Protobuf.dll' could not be found CSC error CS0006: Metadata file 'E:\TeamCity\buildAgent2\temp\buildTmp\

Get Build status by Commit SHA1

江枫思渺然 提交于 2019-12-10 11:40:55
问题 Our team is using TeamCity for continuous integration and Git-TFS (TFS2015 RC) for versioning. I want to check if a specific Commit has been built (successfully) by TeamCity and thus can be reintegrated. It is possible to query TeamCity builds by using their REST API, e.g.: GET http://teamcity:8000/guestAuth/app/rest/builds/18 with the result containing some xml that shows the git commit SHA: <revisions count="1"> <revision version="96b1db05b64ecc895da070137e93cde3d2cadfa1"> <vcs-root

Parameterized Checkout Rules in Teamcity discards parameter when using svn+ssh

此生再无相见时 提交于 2019-12-10 11:38:49
问题 Having a SVN+SSH issue with setting up a parameterized build in Teamcity. My SVN layout is VCSRoot << VCS Root configured to point here trunk deployment_module tags tag_name1 deployment_module tag_name2 deployment_module ... etc I have one VCS root configured to the root specified above. My trunk build is working fine and is configured with the following checkout rule: +:trunk/deployment_module => . For the branches, I wanted to set up a build that takes a parameter: %RELEASE_TAG% . I could

TeamCity show branch in artifact zip name

巧了我就是萌 提交于 2019-12-10 11:10:31
问题 I have a build in TeamCity where I want to build an artifact zip file. I can use Edit Configuration Settings => General Settings => Artifact Paths to set up the files to zip and the zip file name. I want to make the name more descriptive, and TeamCity lets me use parameters, e.g. : out/mypackagedfiles/** => MyBuild_%build.number%.zip will give me a zip file like MyBuild_46.zip . I'd also like to include the branch that the build was built from. This is also available as a TeamCity parameter,