From ecc5d039b36ee8a655f7adf52c1c0feed4c2f7cd Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Tue, 31 Aug 2021 12:54:41 +1000 Subject: [PATCH] CI Updates --- Jenkinsfile.centos8 | 90 +++++++++++++++++++++------------------------ 1 file changed, 41 insertions(+), 49 deletions(-) diff --git a/Jenkinsfile.centos8 b/Jenkinsfile.centos8 index fabba43..154c3f7 100644 --- a/Jenkinsfile.centos8 +++ b/Jenkinsfile.centos8 @@ -1,53 +1,45 @@ @Library('jc21') _ pipeline { - options { - buildDiscarder(logRotator(numToKeepStr: '10')) - disableConcurrentBuilds() - } - agent { - label 'rpm' - } - stages { - stage('Prepare') { - steps { - sh 'docker pull ${DOCKER_CI_TOOLS}' - } - } - stage('Build') { - steps { - ansiColor('xterm') { - sh './build 8 golang' - } - } - } - stage('Sign') { - steps { - ansiColor('xterm') { - rpmSign() - } - } - } - stage('Publish') { - steps { - dir(path: 'RPMS') { - archiveArtifacts(artifacts: '**/*/*.rpm', caseSensitive: true, onlyIfSuccessful: true) - } - dir(path: 'SRPMS') { - archiveArtifacts(artifacts: '**/*.src.rpm', caseSensitive: true, onlyIfSuccessful: true, allowEmptyArchive: true) - } - rpmGithubRelease('centos8') - } - } - } - post { - success { - juxtapose event: 'success' - sh 'figlet "SUCCESS"' - } - failure { - juxtapose event: 'failure' - sh 'figlet "FAILURE"' - } - } + options { + buildDiscarder(logRotator(numToKeepStr: '10')) + disableConcurrentBuilds() + ansiColor('xterm') + } + agent { + label 'rpmbuild' + } + stages { + stage('Build') { + steps { + sh './build 8 golang' + } + } + stage('Sign') { + steps { + rpmSign() + } + } + stage('Publish') { + steps { + dir(path: 'RPMS') { + archiveArtifacts(artifacts: '**/*/*.rpm', caseSensitive: true, onlyIfSuccessful: true) + } + dir(path: 'SRPMS') { + archiveArtifacts(artifacts: '**/*.src.rpm', caseSensitive: true, onlyIfSuccessful: true, allowEmptyArchive: true) + } + rpmGithubRelease('centos8') + } + } + } + post { + success { + juxtapose event: 'success' + sh 'figlet "SUCCESS"' + } + failure { + juxtapose event: 'failure' + sh 'figlet "FAILURE"' + } + } }