Skip to content

Commit

Permalink
Use common build script
Browse files Browse the repository at this point in the history
  • Loading branch information
jc21 committed Jun 25, 2024
1 parent a21053d commit 9273dd5
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 128 deletions.
10 changes: 3 additions & 7 deletions Jenkinsfile.el8
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,12 @@ pipeline {
ansiColor('xterm')
}
agent {
label 'rpmbuild'
label 'rpm'
}
stages {
stage('Build') {
steps {
sh './build 8'
}
}
stage('Sign') {
steps {
rpmBuild(8)
rpmSign()
}
}
Expand All @@ -28,7 +24,7 @@ pipeline {
dir(path: 'SRPMS') {
archiveArtifacts(artifacts: '**/*.src.rpm', caseSensitive: true, onlyIfSuccessful: true, allowEmptyArchive: true)
}
rpmGithubRelease('centos8')
rpmGithubRelease('el8')
}
}
}
Expand Down
41 changes: 41 additions & 0 deletions Jenkinsfile.el9
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
@Library('jc21') _

pipeline {
options {
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
ansiColor('xterm')
}
agent {
label 'rpm'
}
stages {
stage('Build') {
steps {
rpmBuild(9)
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('el9')
}
}
}
post {
success {
juxtapose event: 'success'
sh 'figlet "SUCCESS"'
}
failure {
juxtapose event: 'failure'
sh 'figlet "FAILURE"'
}
}
}
12 changes: 1 addition & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
# [golang](https://golang.org)

Build for Redhat based distros hosted on [yum.jc21.com](https://yum.jc21.com)

### Building Locally

```bash
git clone https://github.com/jc21-rpm/golang.git
cd golang

# Using centos 8 as building distro:
./build 8
```
Build for Enterprise Linux based distros hosted on [yum.jc21.com](https://yum.jc21.com)
2 changes: 1 addition & 1 deletion SPECS/golang.spec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Name: golang
Version: 1.22.4
Release: 1
Release: 1%{?dist}
Summary: The Go Programming Language
License: BSD and Public Domain
URL: https://www.shellcheck.net/
Expand Down
109 changes: 0 additions & 109 deletions build

This file was deleted.

0 comments on commit 9273dd5

Please sign in to comment.