teamcity | Python package providing access to the JetBrains TeamCity | Plugin library
kandi X-RAY | teamcity Summary
kandi X-RAY | teamcity Summary
dohq-teamcity is a Python package providing access to the JetBrains TeamCity server API. This library support ALL TeamCity API methods, if you don't find some - create issue, please.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Make a call to the API
- Deserialize a response object into an instance
- Deserialize data
- Calls the API endpoint
- List all available API routes
- Create a new API function
- Convert CamelCase to CamelCase
- Start backup
- Start a backup backup
- Set parameters for a feature
- Get children alias
- Set Build parameters
- Set the value of a parameter
- Get parameters for a feature
- Get root for a bundle
- Gets the children of a path
- Get_content_content
- Get the metadata for a path
- Return the built - in container
- Retrieve a build
- Get children alias
- Get children of a folder
- Get a zip
- Set a parameter definition
- Generate a model for the given API
- Get a zip file
teamcity Key Features
teamcity Examples and Code Snippets
Community Discussions
Trending Discussions on teamcity
QUESTION
Having a hard time traversing and querying elements from a jsonb[]
row.
ANSWER
Answered 2022-Apr-09 at 06:24In PostgreSQL all jsonb array functions
only for using JSONB
types, not JSONB[]
.
First-way you can use
unnest
function to convert arrays to rows, after then you can usejsonb_array_elements
.Second-way change type
JSONB[]
toJSON
in your table. Don't worry, you can still insert your JSON string data which is written above intoJSONB
field without any problems. Inside theJSON
andJSONB
strings, we can use arrays using formatted strings.Jsonb array functions
only for arrays written inside JSON string.
QUESTION
I would like to integrate an automated versioning system in my ASP.NET project. For each release, it should have a version number based on the previous release. I am planning to integrate Gitversion https://gitversion.net/. Does anyone use it in your projects? For the CI/CD pipeline we have teamcity and octopus deploy.
What is the best practice for automated software release versions?
Thanks in advance
...ANSWER
Answered 2022-Mar-31 at 13:10As one of the maintainers of GitVersion, I'm obviously biased, but since you're asking how to use GitVersion to implement a "best practice for automated software release", I'm going to unashamedly give you a textual description of a talk I've done on how I prefer to version and release software with GitVersion, TeamCity and Octopus Deploy.
Developer WorkflowThe first thing you should figure out is what kind of developer workflow you want for your software. GitVersion supports Git Flow and many simplified variants of it, and GitHub Flow (as well as many other trunk based development flows). Which workflow you should choose depends on what type of software you are developing, your team and most importantly; your personal preference.
Once you have chosen your workflow, you can configure which mode
GitVersion should operate under.
GitVersion works by calculating a version number from your Git repository. This means that you should not commit a version number to Git in any shape or form. Not within a package.json
, pom.xml
, .csproj
, or any other build- or project-related file that often mandates the existence of a version number.
Instead, you should allow GitVersion to produce a version number based on the Git history, using the currently checked out commit as its starting point, and searching through the parents and their tags to calculate an appropriate version number for the current commit. This version number can then be used in any way you want in your build pipeline. You can, for instance, write GitVersion's FullSemVer
variable to package.json
by executing the following command:
QUESTION
In 2022, GitHub has discontinued DSA and RSA with old signatures.
Unfortunately, JGit uses JSch which is not getting any updates and will always offer old signatures with RSA even for "good" keys, and its implementation of ECDSA/ed25519 will fail on reconnect attempt.
Is JGit usable with GitHub at all - what kind of configuration should I use? I am talking about a combination of key type, configuration settings and code invocations that would lead to reliable work against GitHub.
...ANSWER
Answered 2022-Mar-18 at 21:11There is a fork of JSch which has support for modern algorithms and should be fairly robust. I know of at least one major organization using it against GitHub with success.
However, note that it disables RSA with SHA-1 support by default, because it's insecure (which is why GitHub is phasing it out), so if you need to work with sites that don't support anything else (e.g., Azure DevOps at the moment), you'll need to set some configuration accordingly.
You may also be able to use Apache Mina in conjunction with JGit. The 5.13 release of JGit supports Mina 2.7.0, which should support modern algorithms.
QUESTION
I have a question regarding a build configuration in teamcity
We are developing a python (flask) rest api where a sql database holds the data. Flask server and postgresql server each runs in a docker container. Our repository contains a docker-compose file which starts all necesary containers.
Now I want to set up a build configuration in TeamCity where the repository is pulled, containers are build and then the docker-compose file should be up and all test functions (pytest) in my flask-python application should be run. I want to get the test report and the docker-compose down command should be run.
My first approach using a command line build configuration step and issuing the commands works, but i don't get the test reports. I not even getting the correct exit code (test fails, but build configuration marked as success)
Can you give me a hint what would be the best strategie to do this task. Building, Testing, Deploying a application which is build out of multiple docker containers (i.e. a docker-compose file)
Thanks Jakob
...ANSWER
Answered 2022-Feb-28 at 09:57I'm working with a similar configuration: a FastAPI application that uses Firebase Emulator suite to run pytest cases agains. Perhaps you will find these build steps suitable for your needs too. I get both test reports and coverage using all the built-in runners.
Reading the TeamCity On-Premise documentation, I found that running a build step command within a docker container will pick up TEAMCITY_DOCKER_NETWORK
env var if previous steps ran docker-compose. This variable is then passed to your build step that runs in docker via --network
flag, allowing you to communicate with services started in docker-compose.yml
.
Three steps are required to get this working (please ignore numbering in the screenshots, I also have other steps configured):
- Using Docker runner, build your container where you will run pytest. Here I'm using the
%build-counter%
to give it a unique tag.
- Using Docker Compose runner, bring up other services that your tests rely on (postgresql service in your case). I am using
teamcity-services.yml
here becausedocker-compose.yml
is already used by my team for local development.
- Using Python runner, run Pytest within your container that was build in step 1. I use suggested teamcity-messages and coverage.py, which get installed using
pip install
inside the container before executing pytest. My container already has pytest installed, if you look through "Show advanced options" there's a checkbox that will let you "Autoinstall the tool on command run" but I haven't tried it out.
Contents of my teamcity-services.yml
, exposing endpoints that my app uses when running pytest.
QUESTION
I have the git commits and the tags as below
The tag of the latest commit is 12.0.0-beta.6. When I run GitVersion, the result is as below
So the build number on TeamCity should be 12.0.0-beta.6, but I don't know why the GitVersion generates build number 12.0.0-beta.6+8 on TeamCity.
My build steps are as below
Does anyone know why GitVersion generates the redundant "+8" after the FullSemVer? How to remove this dedundant "+8"? Thank you very much.
...ANSWER
Answered 2022-Jan-18 at 06:51Read carefully and understand at least part of GitVerson docs (paragraphs 1+2)
The shortest possible extraction
GitVersion will increment the metadata for each build so you can tell builds apart. For example,
1.0.0+5
followed by1.0.0+6
. It is important to note that build metadata is not part of the semantic version; it is just metadata!
QUESTION
I have in my TeamCity job a VCS trigger that runs automatically once we push changes in our bitbucket repo. that looks like this:
...ANSWER
Answered 2022-Jan-17 at 10:46The %teamcity.build.triggeredBy%
parameter is not populated with the user that pushed the changes to git - according to the docs, it's simply:
Human-friendly description of how the build was triggered
Thus, the value Git
indicates that the build was triggered by the fact that new commits were pushed to the Git repository, which is configured as VCSRoot for this project.
There is no easy way to obtain the information you need. There are a couple of options outlined in this post:
- use TeamCity REST API
- use Git command-line tool
QUESTION
I got an assembly that builds and unittests fine on my pc, but fails to test on the build pc. And it has been failing for about a month. - I've most likely done something wrong. Here is the resposen I get from the build server.
...ANSWER
Answered 2022-Jan-13 at 22:55Upgrade your nuget packages to the latest and it should fix your problem. I think you need 2.2.8 for MSTest.TestAdapter and TestFramework.
QUESTION
I just started with the TeamCity CI server. I have 2 builds
- API-Tests
- UI-Tests
Both these builds run in parallel whereas both the builds will have a dropdown config parameter with choices(Regression, Sanity)
I have a build name Release with a similar dropdown config parameter with choices(Regression, Sanity) and this build depends on both API-Tests and UI-Tests. The build Release will have to trigger manually by choosing the dropdown parameter(Regression, Sanity).
I want to pass the option chosen in the Release build to both API-Tests and UI-Tests builds. I can't use %dep.*%, since Release build depends on API-Tests and UI-Tests builds.
I have attached the build chain for reference. Please guide me to fix the requirement or suggest at least a workaround.
...ANSWER
Answered 2022-Jan-11 at 07:23It seems like you're looking for the reverse.dep.*
pattern, which is best described in the official documentation.
Quoting the docs:
It is possible to redefine build parameters in the snapshot-dependency builds when the current build starts. For example, build configuration A depends on B and B depends on C; on triggering, A can change any parameter used in B or C.
It looks like this is your case:
To change a parameter in all dependencies at once, use a wildcard:
reverse.dep.*.
Anyway, I would encourage you to read the whole article to get thorough understanding of the subject and choose the most suitable option.
QUESTION
Trying to run a Python program using GitLab's CI pipeline.
I had this running in Teamcity, but I wanted to try in GitLab.
First attemptI supplied an explicit list of pip install
commands including wmi
.
ANSWER
Answered 2021-Dec-16 at 18:17While the python:3.8.0 image has a windows architecture available, it looks like it's pulling the linux version from that tag. You can test this by adding the command uname -srm
to the first line of your test scripts.
I wasn't able to get a windows docker image for python running on a shared runner, but I was able to install python 3.8 on a runner with the following minimal .gitlab-ci.yml:
QUESTION
I'm attempting to build an Unreal project on TeamCity. I have a build step failing at .NET
running msbuild
(cross-platform MSBuild
). The configuration is Development Editor
. Error:
ANSWER
Answered 2021-Nov-29 at 11:40This can be set at the .NET
build step in Teamcity. There is a field for Command Line Parameters
in which you can include
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
Install teamcity
You can use teamcity like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page