-
Notifications
You must be signed in to change notification settings - Fork 14
Steps to create a new jenkins node for tests
vmonakhov edited this page May 4, 2024
·
2 revisions
- Create new user (?with sudo) and
~/jenkins
folder - Put necessary ssh keys into
~/.ssh/authorized_keys
- 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
- 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).
- 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
- Create symlink
~/.local/bin/python3
forpython3.10
and~/.local/bin/nosetests3
to the installednosetests-3.10
binary. Implement post-installation steps for docker - Copy actual postgress dbdump and
zz-updatepasswords.sql
into~/jenkins/static
- Try to start jenkins job on new node