From 3807987959603458011063ecb555479d1a546b80 Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Thu, 17 Oct 2019 10:09:11 +1000 Subject: [PATCH] Centos8 --- Jenkinsfile.centos8 | 53 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Jenkinsfile.centos8 diff --git a/Jenkinsfile.centos8 b/Jenkinsfile.centos8 new file mode 100644 index 0000000..fabba43 --- /dev/null +++ b/Jenkinsfile.centos8 @@ -0,0 +1,53 @@ +@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"' + } + } +}