diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2020-08-20 16:19:03 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-08-20 16:19:03 +0200 |
commit | ce3de2f5d3c6c567fecef7783bdd435e89cb48ed (patch) | |
tree | b2d91c509b73280d7af04633f411117863e8475d | |
parent | 69f7d2e34c69f2bb2d7a996cd65d9c319e8aad94 (diff) | |
download | jenkinsfiles-ce3de2f5d3c6c567fecef7783bdd435e89cb48ed.tar.gz |
more rpmbuild
-rw-r--r-- | Jenkinsfile | 48 | ||||
-rw-r--r-- | centos8-rpmbuild.yaml | 14 | ||||
-rw-r--r-- | fedora-rpmbuild.yaml | 12 |
3 files changed, 70 insertions, 4 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index adb2c16..03281b3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,11 +12,11 @@ pipeline { stages { - stage('rpmbuild') { + stage('rpmbuild fedora') { agent { kubernetes { - yamlFile 'centos7-rpmbuild.yaml' - defaultContainer 'centos7-rpmbuild' + yamlFile 'fedora-rpmbuild.yaml' + defaultContainer 'fedora-rpmbuild' slaveConnectTimeout '3600' nodeSelector 'kubernetes.io/os=linux,kubernetes.io/arch=amd64' } @@ -32,7 +32,47 @@ pipeline { } } - stage('fedora') { + stage('rpmbuild centos8') { + agent { + kubernetes { + yamlFile 'centos8-rpmbuild.yaml' + defaultContainer 'centos8-rpmbuild' + slaveConnectTimeout '3600' + nodeSelector 'kubernetes.io/os=linux,kubernetes.io/arch=amd64' + } + } + steps { + sh ''' + uname -a + printenv | sort + cat /etc/os-release + /usr/local/bin/configure-mirror + gendiff /etc/yum.repos.d .dist || true + ''' + } + } + + stage('rpmbuild fedora') { + agent { + kubernetes { + yamlFile 'fedora-rpmbuild.yaml' + defaultContainer 'fedora-rpmbuild' + slaveConnectTimeout '3600' + nodeSelector 'kubernetes.io/os=linux,kubernetes.io/arch=amd64' + } + } + steps { + sh ''' + uname -a + printenv | sort + cat /etc/os-release + /usr/local/bin/configure-mirror + gendiff /etc/yum.repos.d .dist || true + ''' + } + } + + stage('bare fedora') { agent { kubernetes { yamlFile 'fedora.yaml' diff --git a/centos8-rpmbuild.yaml b/centos8-rpmbuild.yaml new file mode 100644 index 0000000..cc034ad --- /dev/null +++ b/centos8-rpmbuild.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Pod +spec: + containers: + - name: centos8-rpmbuild + image: registry.gitlab.com/kraxel/rpm-package-builder:centos8 + imagePullPolicy: Always + env: + - name: "CENTOS_MIRROR" + value: "http://spunk.home.kraxel.org/centos/" + - name: "EPEL_MIRROR" + value: "http://spunk.home.kraxel.org/epel/" + tty: true + command: [ "cat" ] diff --git a/fedora-rpmbuild.yaml b/fedora-rpmbuild.yaml new file mode 100644 index 0000000..6f7e466 --- /dev/null +++ b/fedora-rpmbuild.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Pod +spec: + containers: + - name: fedora-rpmbuild + image: registry.gitlab.com/kraxel/rpm-package-builder:fedora + imagePullPolicy: Always + env: + - name: "FEDORA_MIRROR" + value: "http://spunk.home.kraxel.org/fedora/" + tty: true + command: [ "cat" ] |