From f77767ce85e0ae56e2d87e93beea1f7db5a944c0 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 2 Sep 2020 15:19:26 -0700 Subject: [PATCH] openqa/dispatcher: add cron job to schedule jobs for CoreOS Signed-off-by: Adam Williamson --- roles/openqa/dispatcher/files/schedule-fcos-builds.cron | 7 +++++++ roles/openqa/dispatcher/tasks/main.yml | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 roles/openqa/dispatcher/files/schedule-fcos-builds.cron diff --git a/roles/openqa/dispatcher/files/schedule-fcos-builds.cron b/roles/openqa/dispatcher/files/schedule-fcos-builds.cron new file mode 100644 index 0000000000..8facf8c184 --- /dev/null +++ b/roles/openqa/dispatcher/files/schedule-fcos-builds.cron @@ -0,0 +1,7 @@ +#!/bin/sh + +# schedule openQA jobs for the current Fedora CoreOS builds in the +# various streams; if the current build has already been tested, +# this will not create any new jobs + +for stream in stable testing next; do /usr/local/bin/fedora-openqa fcosbuild $i > /dev/null 2>&1 || /usr/bin/true; done diff --git a/roles/openqa/dispatcher/tasks/main.yml b/roles/openqa/dispatcher/tasks/main.yml index d666bf7949..f78c8d8dbd 100644 --- a/roles/openqa/dispatcher/tasks/main.yml +++ b/roles/openqa/dispatcher/tasks/main.yml @@ -371,6 +371,11 @@ tags: - config +- name: Set up cron job to schedule Fedora CoreOS build jobs + copy: src=schedule-fcos-builds.cron dest=/etc/cron.hourly/schedule-fcos-builds owner=root group=root mode=0755 + tags: + - config + # This is to deal with an annoying bug in fedora-messaging: sometimes # consumers seem to get stuck allegedly running fine but not parsing # any messages. So we'll restart all running consumers every day just