blob: b7fa2d3c1716f6d305cf455c08a8193d26648ec1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
---
- name: install jenkins packages
include_tasks: debian.yml
when: ansible_distribution == 'Debian'
- name: add user jenkins
user:
name: "{{ jenkins_user }}"
generate_ssh_key: yes
ssh_key_bits: 4096
ssh_key_type: rsa
shell: /bin/bash
- name: setup jenkins ssh key
authorized_key:
user: "{{ jenkins_user }}"
key: "{{ lookup('file', 'jenkins.osmocom.org.pub') }}"
- name: install ttcn3 dependencies
include_tasks: ttcn3-slave.yml
when: ttcn3_slave and ansible_distribution == 'Debian' and ansible_distribution_version|int >= 9 and not (ansible_architecture == "armv7l" or ansible_architecture == "arm64")
- name: include osmocom_build_deps.yml
include_tasks: osmocom_build_deps.yml
when: install_osmocom_build_deps
- name: include generic slave
include_tasks: generic-slave.yml
when: generic_slave
- name: set-up osmo-ci repo
include_tasks: osmo-ci.yml
when: generic_slave
- name: copy .gitconfig
copy:
src: gitconfig
dest: "/home/{{ jenkins_user }}/.gitconfig"
- name: call fstrim periodically
cron:
name: "fstrim"
hour: "*/12"
minute: 0
job: "fstrim / >/dev/null 2>/dev/null || true"
when: osmocom_jenkins_slave_fstrim
|