aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/setup-jenkins-slave.yml
blob: 7eac8b7a70bc97772ccf05224d0af68b1c526f5a (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
- name: setup jenkins slaves
  hosts: jenkins-slaves
  user: root
  vars_files:
    - "vars/{{ ansible_facts['os_family'] }}-{{ ansible_facts['distribution_major_version']}}.yml"
  tasks:
    - name: install common utilities
      apt:
        name:
          - vim
          - tmux
          - screen
          - ca-certificates
        cache_valid_time: 3600
        update_cache: yes
  roles:
    - name: apt-allow-relinfo-change

    - name: docker
      jenkins_user: osmocom-build
      tags:
        - docker

    - name: install-poky-sdk
      when: ansible_architecture == "x86_64"
      jenkins_user: osmocom-build
      poky_installer_file: poky-glibc-x86_64-meta-toolchain-osmo-cortexa15hf-neon-toolchain-osmo-2.3.4.sh
      poky_dest: /opt/poky-oc2g/2.3.4/
      tags:
        - poky

    - name: install-poky-sdk
      when: ansible_architecture == "x86_64"
      jenkins_user: osmocom-build
      poky_installer_file: poky-glibc-x86_64-meta-toolchain-osmo-armv5te-toolchain-osmo-2.3.4.sh
      poky_dest: /opt/poky-sdk/2.3.4/
      tags:
        - poky

    - name: osmocom-jenkins-slave
      jenkins_user: osmocom-build
      generic_slave: true
      tags:
        - jenkins-slave

    - name: ntpd

- name: setup coverity slaves
  hosts: coverity-slaves
  user: root
  roles:
    - name: install-coverity
      tags:
        - coverity

- name: setup qemu images
  hosts: qemu
  user: root
  roles:
    - name: qemu
      jenkins_user: osmocom-build
      tags:
        - qemu