Commit graph

6 commits

Author SHA1 Message Date
Major Hayden
5516102fdb 🚽 Use Jenkins pipeline for better flow
By using a small Jenkins pipeline in the repository, we can define
almost all of our testing parameters in the repo itself and not inside
Jenkins. 🥳

This also allows us to use the GitHub Branch Source plugin and
auto-discover new repositories without `ok to test` bombs in
pull requests.

Signed-off-by: Major Hayden <major@redhat.com>
2020-05-06 12:06:12 -05:00
Ondřej Budai
19328b062c jenkins: remove composer directories before the tests
This commit turns on the `cleanup_composer_directories` option to clean up
the osbuild-composer directories during the time the services are stopped
(when ansible-osbuild is about to deploy the new versions of the
services).

Taken from osbuild/osbuild-composer#575, thanks to @major!
2020-05-04 11:35:44 +02:00
Ondřej Budai
c680248d29 jenkins: Use sudo for tests
Jenkins now uses a non-root user for its agents, so we will need to use
sudo for some commands.

Stolen from osbuild/osbuild-composer#581, big thanks to @major!
2020-05-04 10:54:18 +02:00
Major Hayden
a1ca198f53 🔧 Run osbuild-composer tests in osbuild CI
Although we are doing a good job of finding osbuild breakage when we
test osbuild-composer, we aren't finding osbuild-composer breakage
when we test osbuild.

Run the image tests from osbuild-composer whenever we do CI for osbuild.

Fixes #362.

Signed-off-by: Major Hayden <major@redhat.com>
2020-04-29 07:40:50 -05:00
Major Hayden
7363266d22 🥊 Resilient testing + log gathering
Convert the bash script to an ansible playbook so we can gracefully
handle testing failures and gather logs reliably. Colorful output
is nice, too.

This brings osbuild's testing script in line with the script for
osbuild-composer.

Signed-off-by: Major Hayden <major@redhat.com>
2020-04-22 17:42:40 +00:00
Major Hayden
b53de35b0a 🤏 Add a little bit more testing
Test a deployment of osbuild along with osbuild-composer for each PR.
More testing could be stacked on top.

Signed-off-by: Major Hayden <major@redhat.com>
2020-04-09 16:35:08 +02:00