aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/osmocom-jenkins-slave/tasks/osmo-ci.yml
blob: d70d8b657ac02c8dc5d46c911d2ea5c85cc6cdaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---

# this is from the "update-osmo-ci-on-slaves" jenkins job.  However,
# we need to initially install osmo-ci and the docker images *before*
# that jenkins job can execute subsequent updates

- name: deploy osmo-ci to home directory
  become: yes
  become_user: "{{ jenkins_user }}"
  git:
    repo: "https://git.osmocom.org/osmo-ci"
    dest: "/home/{{ jenkins_user }}/osmo-ci"

- name: rebuild osmocom docker images for jenkins build tests
  become: yes
  become_user: "{{ jenkins_user }}"
  shell: ./scripts/osmo-ci-docker-rebuild.sh
  args:
    chdir: "/home/{{ jenkins_user }}/osmo-ci"