summaryrefslogtreecommitdiffstats
path: root/ansible/setup-jenkins-slave.yml
blob: 07414aa74aa7cb02e591ba5741dbc545b896b1d5 (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
---
- 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: 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