From 1b8eeba3839a39532ce6c2c8117a386ccb8227a5 Mon Sep 17 00:00:00 2001 From: Qixiang Wan Date: Aug 21 2020 10:29:25 +0000 Subject: Jenkinsfile: install mock-core-configs In cases of mock-core-configs is not installed by default on system, 'dnf -y update mock-core-configs' results in error and Jenkins job fails, so we install mock-core-configs first, if it has been installed already, it doesn't matter (and 'dnf update' can update it). --- diff --git a/Jenkinsfile b/Jenkinsfile index a083b10..af39a69 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -62,7 +62,7 @@ node('fedora-29') { sh """ ${installDepsCmd} sudo dnf -y install python3-flake8 python3-pylint python3-sphinx \ - python3-sphinxcontrib-httpdomain python3-pytest-cov + python3-sphinxcontrib-httpdomain python3-pytest-cov mock-core-configs """ /* Needed to get the latest /etc/mock/fedora-28-x86_64.cfg */ sh 'sudo dnf -y update mock-core-configs'