From 0a7c97c97aff712121d184c60bfc417dc297537a Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Mon, 8 Jun 2020 20:12:56 -0500 Subject: [PATCH] Run tests on RHEL 8.3 nightly Now that mock builds for RHEL 8.3 look good, add tests for RHEL 8.3 nightly builds. The tests are wrapped in `catchError()` which allows us to fail the stage without failing the whole pipeline just because RHEL 8.3 is having a bad day. Signed-off-by: Major Hayden --- schutzbot/Jenkinsfile | 66 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/schutzbot/Jenkinsfile b/schutzbot/Jenkinsfile index 526d65800..36ba2a560 100644 --- a/schutzbot/Jenkinsfile +++ b/schutzbot/Jenkinsfile @@ -233,6 +233,72 @@ pipeline { } } } + stage('RHEL 8.3 Base') { + agent { label "rhel83" } + environment { TEST_TYPE = "base" } + steps { + unstash 'rhel83' + // If RHEL 8.3 fails, let the stage fail without + // marking the entire pipeline as a failure. Once + // RHEL 8.3 calms down and tests begin to pass, + // remove this wrapper and make this test look like + // the others. + catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { + run_tests('base') + } + } + post { + always { + preserve_logs('rhel83-base') + } + } + } + stage('RHEL 8.3 Image') { + agent { label "rhel83 && psi" } + environment { + TEST_TYPE = "image" + AWS_CREDS = credentials('aws-credentials-osbuildci') + } + steps { + unstash 'rhel83' + // If RHEL 8.3 fails, let the stage fail without + // marking the entire pipeline as a failure. Once + // RHEL 8.3 calms down and tests begin to pass, + // remove this wrapper and make this test look like + // the others. + catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { + run_tests('image') + } + } + post { + always { + preserve_logs('rhel83-image') + } + } + } + stage('RHEL 8.3 integration') { + agent { label "rhel83" } + environment { + TEST_TYPE = "integration" + AWS_CREDS = credentials('aws-credentials-osbuildci') + } + steps { + unstash 'rhel83' + // If RHEL 8.3 fails, let the stage fail without + // marking the entire pipeline as a failure. Once + // RHEL 8.3 calms down and tests begin to pass, + // remove this wrapper and make this test look like + // the others. + catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { + run_tests('integration') + } + } + post { + always { + preserve_logs('rhel83-integration') + } + } + } } } }