Schutzfile: add koji-osbuild as dependant

Generalize deploy.sh to allow setting up reverse dependency tests. Those
need the same setup for osbuild and osbuild-composer (i.e., the ones
under test), and in addition need the -tests package of the dependant
project.

Add test runs for koji-osbuild for all operating systems in Jenkinsfile.

Use a commit in koji-osbuild for which a repository was pushed to s3 in
the right format.
This commit is contained in:
Lars Karlitski 2020-11-22 13:39:57 +01:00
parent 7ce44b6b72
commit bbaffa33c9
3 changed files with 56 additions and 2 deletions

29
schutzbot/Jenkinsfile vendored
View file

@ -164,6 +164,17 @@ pipeline {
}
}
}
stage('F32: koji-osbuild') {
agent { label "f32cloudbase && x86_64 && aws" }
steps {
run_project_tests('koji-osbuild', 'integration.sh')
}
post {
always {
preserve_logs('fedora32-revdep-koji-osbuild')
}
}
}
stage('F33 Base') {
agent { label "f33cloudbase && x86_64 && aws" }
environment { TEST_TYPE = "base" }
@ -291,6 +302,17 @@ pipeline {
}
}
}
stage('EL8: koji-osbuild') {
agent { label "rhel8cloudbase && psi && x86_64" }
steps {
run_project_tests('koji-osbuild', 'integration.sh')
}
post {
always {
preserve_logs('rhel8-revdep-koji-osbuild')
}
}
}
stage('EL8.4 Base') {
agent { label "rhel84cloudbase && x86_64 && psi" }
environment {
@ -466,7 +488,14 @@ void run_tests(test_type, boot_type) {
script: "/usr/libexec/tests/osbuild-composer/api.sh"
)
}
}
// Similar to run_tests, but with a more general signature: allows setting the
// project whose -tests package to install, and the name of the test to execute
void run_project_tests(project, test) {
sh "schutzbot/ci_details.sh"
sh "schutzbot/deploy.sh ${project}"
sh "/usr/libexec/tests/${project}/${test}"
}
// Move logs to a unique location and tell Jenkins to capture them on success