Change in osmo-ci[master]: osmocom-jenkins-slave: Deploy osmo-ci and build docker images

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Thu Jan 31 21:08:30 UTC 2019


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/12767 )

Change subject: osmocom-jenkins-slave: Deploy osmo-ci and build docker images
......................................................................

osmocom-jenkins-slave: Deploy osmo-ci and build docker images

This is periodically performed by https://jenkins.osmocom.org/jenkins/job/update-osmo-ci-on-slaves
but in order to get to the point of updating it, we must at least
have done one initial deployment of the repository before.  This is
done by the takss in the new osmo-ci.yml

Closes: OS#3773
Change-Id: I581b8713cfdb3ca2ef7f0925730974056981e448
---
M ansible/roles/osmocom-jenkins-slave/tasks/main.yml
A ansible/roles/osmocom-jenkins-slave/tasks/osmo-ci.yml
2 files changed, 23 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved; Verified



diff --git a/ansible/roles/osmocom-jenkins-slave/tasks/main.yml b/ansible/roles/osmocom-jenkins-slave/tasks/main.yml
index 36bc424..6d15ea1 100644
--- a/ansible/roles/osmocom-jenkins-slave/tasks/main.yml
+++ b/ansible/roles/osmocom-jenkins-slave/tasks/main.yml
@@ -25,6 +25,10 @@
   include_tasks: generic-slave.yml
   when: generic_slave
 
+- name: set-up osmo-ci repo
+  include_tasks: osmo-ci.yml
+  when: generic_slave
+
 - name: install ttcn3 dependencies
   include_tasks: ttcn3-slave.yml
   when: ttcn3_slave and ansible_distribution == 'Debian' and ansible_distribution_version >= '9'
diff --git a/ansible/roles/osmocom-jenkins-slave/tasks/osmo-ci.yml b/ansible/roles/osmocom-jenkins-slave/tasks/osmo-ci.yml
new file mode 100644
index 0000000..d002f95
--- /dev/null
+++ b/ansible/roles/osmocom-jenkins-slave/tasks/osmo-ci.yml
@@ -0,0 +1,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: ./rebuild_osmocom_jenkins_image.sh
+  args:
+    chdir: "/home/{{ jenkins_user }}/osmo-ci/docker"

-- 
To view, visit https://gerrit.osmocom.org/12767
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I581b8713cfdb3ca2ef7f0925730974056981e448
Gerrit-Change-Number: 12767
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190131/2cd92bd2/attachment.htm>


More information about the gerrit-log mailing list