Skip to content

Commit

Permalink
CI Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jc21 committed Aug 31, 2021
1 parent 99eff5a commit ecc5d03
Showing 1 changed file with 41 additions and 49 deletions.
90 changes: 41 additions & 49 deletions Jenkinsfile.centos8
Original file line number Diff line number Diff line change
@@ -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"'
}
}
}

0 comments on commit ecc5d03

Please sign in to comment.