Skip to content

Steps to create a new jenkins node for tests

vmonakhov edited this page May 4, 2024 · 2 revisions
  1. Create new user (?with sudo) and ~/jenkins folder
  2. Put necessary ssh keys into ~/.ssh/authorized_keys
  3. Install the following system packs:
sudo apt install openjdk-11-jdk git xvfb jq
sudo add-apt-repository ppa:deadsnakes/ppa -y
sudo apt update
sudo apt install python3.10 python3.10-distutils

(!) Don't remove or change system python e.g. python 3.12 for Ubuntu 24.04

  1. Ask admins to allow connection between jenkins master host e.g. 10.10.12.15 (zeus) and your new host if not yet. Ask devops to add your new node to jenkins config with the user and the folder from (1).
  2. See here and install pip for python3.10. Get requirements.txt from the repo with tests. Install the following python3 packs:
pip config set global.break-system-packages true # for Ubuntu 24.04
pip install wheel setuptools PyYAML --upgrade
pip install docker==6.1.3 docker-compose
pip install -r requirements.txt
  1. Create symlink ~/.local/bin/python3 for python3.10 and ~/.local/bin/nosetests3 to the installed nosetests-3.10 binary. Implement post-installation steps for docker
  2. Copy actual postgress dbdump and zz-updatepasswords.sql into ~/jenkins/static
  3. Try to start jenkins job on new node
Clone this wiki locally