Skip to content

NimTechnology

Trình bày các công nghệ CLOUD một cách dễ hiểu.

  • Kubernetes & Container
    • Docker
    • Kubernetes
      • Ingress
    • Helm Chart
    • Isito-EnvoyFilter
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Vault
    • Longhorn – Storage
    • VictoriaMetrics
    • MetalLB
    • Kong Gateway
  • CI/CD
    • ArgoCD
    • ArgoWorkflows
    • Spinnaker
    • Jenkins
    • Harbor
    • TeamCity
    • Git
      • Bitbucket
  • Coding
    • Terraform
      • GCP – Google Cloud
      • AWS – Amazon Web Service
    • Golang
    • Laravel
    • Python
    • Jquery & JavaScript
    • Selenium
  • Log & Monitor
    • DataDog
    • Prometheus
    • Grafana
    • ELK
      • Kibana
      • Logstash
  • BareMetal
    • NextCloud
  • Toggle search form

[Team City] Working with Projects and Build Configurations

Posted on July 26, 2022January 9, 2023 By nim No Comments on [Team City] Working with Projects and Build Configurations

Contents

  • 1) Connecting to a Version Control System (VCS)
  • 2) VCS Root Connections and Open Authentication
  • 3) Ways of organizing your projects in TeamCity
  • 4) Creating your first TeamCity project
  • 5) Tools, Build Steps, Parameters and Templates!
  • Get environment/parameter hiden on teamcity

1) Connecting to a Version Control System (VCS)

Gần như là khi chúng ta cấu hình connection to get ở Root Project thì các project khác sẽ được thùa hưởng
Bạn điền đầy đủ các thông tin như hình.
với authentication thì bạn chọn user/<Personal access tokens>

https://github.com/mrnim94/Accounting

bạn có thể kiêm tra để biêt teamcity kết nối với github được chưa?
sau khi connection successful thì bạn click “create”

2) VCS Root Connections and Open Authentication

Ở phần 1 chúng ta đã khai báo username/token github
Phần này chúng ta cần để tạo project dựa trên các repo trên github.
Mình ví dụ mình muốn tạo 1 project cho repo Accouting

Giờ ta vào github cấu hình

GitHub Request Error
Invalid callback URL specified in GitHub OAuth application. Callback URL should be: http://192.168.101.34:8111/oauth/github/accessToken.html
Bạn thấy là nó list ra các repo
chọn 1 repo
Phân này chúng ta tạm dừng ở đây

3) Ways of organizing your projects in TeamCity

Projects tend to group build configurations
Build configurations include the instructions of building and deploying code
Root Project
Build and Package (Project)
Accounting
Fixed Asset
Deployments (Project)
Accounting

Root Project
Accounting (Project)
Build and package
Deploy to QA environment
Deploy to Production environment
Fixed Assets (Project)
Build and package
Deploy to QA environment
Deploy to Production environmen

4) Creating your first TeamCity project

Đầu tiên bạn cần tạo 1 project

tạo 1 project với tyle là manually
Xong rồi click create
sau khi bạn nhấn create thì nó sẽ hiện ra màn hình như sau

Giờ đến phần chúng ta tạo Build Configurations trong project

Bạn thấy nó detect và scan repo tên là Accounting
https://github.com/mrnim94/Accounting
và đây là kết quả
Bạn thấy chúng ta đã có 1 project và 1 build trong project đó!

5) Tools, Build Steps, Parameters and Templates!

thử click run
Bạn sẽ thấy 2 agent ở đây chạy chạy
Trở lại chỗ này thì mình thấy có thông báo “SUCCESS“
Vào đây bạn sẽ thấy được build log
Ở hiện tại bạn nhìn thôi nhé

Get environment/parameter hiden on teamcity

https://youtrack.jetbrains.com/issue/TW-59165?_ga=2.128595276.1379635287.1673260545-609699531.1660623895&_gl=11y9yvg8_gaNjA5Njk5NTMxLjE2NjA2MjM4OTU._ga_9J976DJZ68*MTY3MzI2MDU0NC40NC4xLjE2NzMyNjE1MzEuMC4wLjA.

set -eux
auth="$(echo -n "$USER:$PASSWORD" | base64)"
echo "##teamcity[hide text='$auth']"
# Other code


echo cvbjNEVQ== | base64 --decode

TeamCity

Post navigation

Previous Post: [TeamCity] Installing and configuring TeamCity 2017
Next Post: [TeamCity] Kotlin DSL – Lesson 1: Project Setup

More Related Articles

[TeamCity] Getting started with TeamCity CI/CD
[Teamcity] Design as a code on Teamcity through Kotlin DSL TeamCity
[TeamCity] Kotlin DSL – Lesson 4 – Build Chains TeamCity
[TeamCity] Kotlin DSL – Lesson 1: Project Setup TeamCity
[Teamcity] Why does TeamCity can’t find tag and branch on git TeamCity
[TeamCity] Kotlin DSL – Lesson 3 – DSL Deep Dive TeamCity

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Tham Gia Group DevOps nhé!
Để Nim có nhiều động lực ra nhiều bài viết.
Để nhận được những thông báo mới nhất.

Recent Posts

  • Experiences for IP Addresses Shortage on EKS Clusters March 29, 2023
  • [Talisman] Discover the sensitive information in your code. March 28, 2023
  • [Prometheus/Grafana] Install Prometheus and Grafana on ubuntu. March 27, 2023
  • [Kong Gateway] WebSocket connection failed March 26, 2023
  • [Nextcloud] Can’t download files to have a size bigger than 2Gi on NextCloud – RaspBerry March 24, 2023

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021

Categories

  • BareMetal
    • NextCloud
  • CI/CD
    • ArgoCD
    • ArgoWorkflows
    • Git
      • Bitbucket
    • Harbor
    • Jenkins
    • Spinnaker
    • TeamCity
  • Coding
    • Golang
    • Jquery & JavaScript
    • Laravel
    • Python
    • Selenium
    • Terraform
      • AWS – Amazon Web Service
      • GCP – Google Cloud
  • Kubernetes & Container
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Docker
    • Helm Chart
    • Isito-EnvoyFilter
    • Kong Gateway
    • Kubernetes
      • Ingress
    • Longhorn – Storage
    • MetalLB
    • Vault
    • VictoriaMetrics
  • Log & Monitor
    • DataDog
    • ELK
      • Kibana
      • Logstash
    • Grafana
    • Prometheus
  • Uncategorized
  • Admin

Copyright © 2023 NimTechnology.