summaryrefslogtreecommitdiffstats
path: root/ansible/setup-jenkins-slave.yml
blob: 39e6f775fa1291e7836700d444c0e72e6d13feaa (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
---
- name: setup jenkins slaves
  hosts: jenkins-slaves
  user: root
  tasks:
    - name: install common utilities
      apt:
        name: "{{ item }}"
        cache_valid_time: 3600
        update_cache: yes
      with_items:
        - vim
        - tmux
        - screen
        - ca-certificates
  roles:
    - name: docker
      jenkins_user: osmocom-build
      tags:
        - docker

    - name: install-poky-sdk
      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
      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: setup coverity slaves
  hosts: coverity-slaves
  user: root
  roles:
    - name: install-coverity
      tags:
        - coverity