TeamCity

TeamCity is a Continuous Integration (CI) and Continuous Delivery (CD) server offered by JetBrains.

Glossary

Installation

Ubuntu 18.04 LTS

  1. Install OpenJDK 8.
    apt-get update
    apt-get install openjdk-8-jdk
  2. Install PostgreSQL.
    apt-get install postgresql postgresql-contrib
  3. Login to the postgres account and login to the PostgreSQL database.
    su postgres
    psql
  4. Create the teamcity user and associated database. Exit psql and the postgres user when finished.
    CREATE USER teamcity WITH PASSWORD '-PASSWORDHERE-';
    CREATE DATABASE teamcity OWNER teamcity;
    \q
    exit
  5. Download the tar.gz installer from the JetBrains Website. Be sure to replace the wget URL with the latest direct download link.
    wget https://download.jetbrains.com/teamcity/TeamCity-2019.1.3.tar.gz
  6. Extract the tar.gz into the /opt directory.
    tar -xvzf TeamCity-2019.1.3.tar.gz -C /opt
  7. Create the teamcity user and home directory.
    useradd teamcity
    mkdir /home/teamcity
  8. Disable logging in for the teamcity user.
    usermod --shell /usr/sbin/nologin teamcity
  9. Change ownership of the TeamCity directory to the teamcity user.
    chown -R teamcity:teamcity /opt/TeamCity
  10. Enter the following config into /etc/systemd/system/teamcity-server.service:
    [Unit]
    Description=JetBrains TeamCity Server
    Requires=network.target
    After=syslog.target network.target
    
    [Service]
    Type=simple
    ExecStart=/opt/TeamCity/bin/teamcity-server.sh run
    ExecStop=/opt/TeamCity/bin/teamcity-server.sh stop
    User=teamcity
    
    [Install]
    WantedBy=multi-user.target
  11. Enable the TeamCity Server service.
    systemctl enable teamcity-server
  12. Start the TeamCity Server service.
    systemctl start teamcity-server
  13. Navigate to port 8111 on the server in a web browser. When prompted, select PostgreSQL as the database type and enter the previously created PostgreSQL user information.
Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng Teamcity_Logo.png r1 manage 173.2 K 2019-09-10 - 19:10 DevonMerner  
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r4 - 2019-12-10 - DevonMerner
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback