Skip to content

Commit

Permalink
Centos8
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Curnow committed Oct 17, 2019
1 parent aa58ac0 commit 3807987
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions Jenkinsfile.centos8
Original file line number Diff line number Diff line change
@@ -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"'
}
}
}

0 comments on commit 3807987

Please sign in to comment.