From ef0939db9b8d9cafa0c5527055ddc0a35238aaa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Fri, 4 Jun 2021 09:36:58 +0200 Subject: [PATCH] ci: remove RHEL 8.4 tests RHEL 8.4 is now GA, so we don't need any extra tests for it. This should also make the CI more reliable because having two distros with the same DISTRO_CODE caused some tests to fail randomly (they used the same intermediate artifacts). --- schutzbot/Jenkinsfile | 31 ------------------------------- schutzbot/mockbuild.sh | 12 ++---------- 2 files changed, 2 insertions(+), 41 deletions(-) diff --git a/schutzbot/Jenkinsfile b/schutzbot/Jenkinsfile index d24eadfb..be96f61b 100644 --- a/schutzbot/Jenkinsfile +++ b/schutzbot/Jenkinsfile @@ -84,17 +84,6 @@ pipeline { sh "schutzbot/mockbuild.sh" } } - stage('RHEL 8.4') { - agent { label "rhel84cloudbase && x86_64 && psi" } - environment { - AWS_CREDS = credentials('aws-credentials-osbuildci') - RHEL84_NIGHTLY_REPO = credentials('rhel84-nightly-repo') - } - steps { - sh "schutzbot/ci_details.sh" - sh "schutzbot/mockbuild.sh" - } - } stage('RHEL 8.5') { agent { label "rhel85cloudbase && x86_64 && psi" } environment { @@ -194,26 +183,6 @@ pipeline { } } } - stage('RHEL 8.4') { - agent { label "rhel84cloudbase && x86_64 && psi" } - environment { - TEST_TYPE = "image" - AWS_CREDS = credentials('aws-credentials-osbuildci') - DISTRO_CODE = "rhel8" - AWS_IMAGE_TEST_CREDS = credentials('aws-credentials-osbuild-image-test') - AZURE_CREDS = credentials('azure') - OPENSTACK_CREDS = credentials('psi-openstack-creds') - VCENTER_CREDS = credentials('vmware-vcenter-credentials') - } - steps { - run_tests() - } - post { - always { - preserve_logs('rhel84-image') - } - } - } } } } diff --git a/schutzbot/mockbuild.sh b/schutzbot/mockbuild.sh index 47e6168c..111c0d43 100755 --- a/schutzbot/mockbuild.sh +++ b/schutzbot/mockbuild.sh @@ -69,16 +69,8 @@ greenprint "📤 RPMS will be uploaded to: ${REPO_URL}" # Build source RPMs. greenprint "🔧 Building source RPMs." make srpm -# rhel 8.4 and 8.5 will run off of the internal repos and does not have a redhat subscription -if [[ $VERSION_ID == 8.4 ]]; then - greenprint "📋 Updating RHEL 8 mock template for unsubscribed image" - sudo sed -i '/# repos/q' /etc/mock/templates/rhel-8.tpl - # remove the subscription check - sudo sed -i "s/config_opts\['redhat_subscription_required'\] = True/config_opts['redhat_subscription_required'] = False/" /etc/mock/templates/rhel-8.tpl - cat "$RHEL84_NIGHTLY_REPO" | sudo tee -a /etc/mock/templates/rhel-8.tpl > /dev/null - # We need triple quotes at the end of the template to mark the end of the repo list. - echo '"""' | sudo tee -a /etc/mock/templates/rhel-8.tpl -elif [[ $VERSION_ID == 8.5 ]]; then +# rhel 8.5 will run off of the internal repos and does not have a redhat subscription +if [[ $VERSION_ID == 8.5 ]]; then greenprint "📋 Updating RHEL 8 mock template for unsubscribed image" sudo sed -i '/# repos/q' /etc/mock/templates/rhel-8.tpl # remove the subscription check