From 12be8f3b4bbc0c7a282380b677abde720d6cc40e Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 20 Aug 2020 01:06:28 +0200 Subject: move stuff to yaml --- Jenkinsfile | 6 +----- centos7-rpmbuild.yaml | 8 ++++++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0e41d62..1024492 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,11 +24,7 @@ pipeline { uname -a printenv | sort cat /etc/os-release - export CENTOS_MIRROR=http://spunk.home.kraxel.org/centos/ - export EPEL_MIRROR=http://spunk.home.kraxel.org/epel/ - /usr/local/bin/configure-mirror - yum update -y - yum install -y gtk3-devel + grep baseurl /etc/yum.repos.d/* ''' } } diff --git a/centos7-rpmbuild.yaml b/centos7-rpmbuild.yaml index 89851db..90a3491 100644 --- a/centos7-rpmbuild.yaml +++ b/centos7-rpmbuild.yaml @@ -5,6 +5,10 @@ spec: - name: centos7-rpmbuild image: registry.gitlab.com/kraxel/rpm-package-builder:centos7 imagePullPolicy: Always - command: - - cat + env: + - name: "CENTOS_MIRROR" + value: "http://spunk.home.kraxel.org/centos/" + - name: "EPEL_MIRROR" + value: "http://spunk.home.kraxel.org/epel/" tty: true + command: [ "/bin/sh", "-c", "/usr/local/bin/configure-mirror && cat" ] -- cgit