From 775dceaf200573245a9fc95d893a1bf52f2b2d35 Mon Sep 17 00:00:00 2001 From: Aleksandar Todorov Date: Wed, 10 Mar 2021 10:42:39 +0200 Subject: [PATCH] tests: Save osbuild.repo file under artifacts makes it easier to grab if we need it for manual testing or in case one needs to download the RPMs from Schutzbot --- schutzbot/Jenkinsfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/schutzbot/Jenkinsfile b/schutzbot/Jenkinsfile index 50a077c9..ba2ce229 100644 --- a/schutzbot/Jenkinsfile +++ b/schutzbot/Jenkinsfile @@ -232,10 +232,13 @@ void preserve_logs(test_slug) { // Make a directory for the log files and move the logs there. sh "mkdir ${test_slug} && mv *.log *.jpg ${test_slug}/ || true" + // Artifact the repo file. + sh "cp /etc/yum.repos.d/osbuild.repo ${test_slug}/ || true" + // Artifact the logs. archiveArtifacts ( allowEmptyArchive: true, - artifacts: "${test_slug}/*.log,${test_slug}/*.jpg" + artifacts: "${test_slug}/*.log,${test_slug}/*.jpg,${test_slug}/*.repo" ) }