Skip to content

Commit d088786

Browse files
author
Jamie Curnow
committed
Ubuntu
1 parent 195b2b9 commit d088786

File tree

2 files changed

+100
-0
lines changed

2 files changed

+100
-0
lines changed

Jenkinsfile.ubuntu-bionic

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
pipeline {
2+
options {
3+
buildDiscarder(logRotator(numToKeepStr: '10'))
4+
disableConcurrentBuilds()
5+
}
6+
agent {
7+
label 'dpkg'
8+
}
9+
stages {
10+
stage('Prepare') {
11+
steps {
12+
ansiColor('xterm') {
13+
sh 'rm -rf sign'
14+
sh 'mkdir -p sign'
15+
16+
dir(path: 'sign') {
17+
git(url: "${RPM_SIGN_GIT_REPO}", credentialsId: "${RPM_SIGN_CREDENTIALS_ID}")
18+
sh 'chmod 600 .gnupg/*'
19+
}
20+
}
21+
}
22+
}
23+
stage('Build') {
24+
steps {
25+
ansiColor('xterm') {
26+
sh './build ubuntu bionic-golang'
27+
}
28+
}
29+
}
30+
stage('Publish') {
31+
steps {
32+
script {
33+
def Dpkg = readJSON file: 'dpkg.json'
34+
archiveArtifacts(artifacts: "${Dpkg.PACKAGE}*.*", caseSensitive: true, onlyIfSuccessful: true)
35+
dpkgGithubRelease('ubuntu-bionic')
36+
}
37+
}
38+
}
39+
}
40+
post {
41+
success {
42+
juxtapose event: 'success'
43+
sh 'figlet "SUCCESS"'
44+
}
45+
failure {
46+
juxtapose event: 'failure'
47+
sh 'figlet "FAILURE"'
48+
}
49+
}
50+
}

Jenkinsfile.ubuntu-eoan

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
pipeline {
2+
options {
3+
buildDiscarder(logRotator(numToKeepStr: '10'))
4+
disableConcurrentBuilds()
5+
}
6+
agent {
7+
label 'dpkg'
8+
}
9+
stages {
10+
stage('Prepare') {
11+
steps {
12+
ansiColor('xterm') {
13+
sh 'rm -rf sign'
14+
sh 'mkdir -p sign'
15+
16+
dir(path: 'sign') {
17+
git(url: "${RPM_SIGN_GIT_REPO}", credentialsId: "${RPM_SIGN_CREDENTIALS_ID}")
18+
sh 'chmod 600 .gnupg/*'
19+
}
20+
}
21+
}
22+
}
23+
stage('Build') {
24+
steps {
25+
ansiColor('xterm') {
26+
sh './build ubuntu eoan-golang'
27+
}
28+
}
29+
}
30+
stage('Publish') {
31+
steps {
32+
script {
33+
def Dpkg = readJSON file: 'dpkg.json'
34+
archiveArtifacts(artifacts: "${Dpkg.PACKAGE}*.*", caseSensitive: true, onlyIfSuccessful: true)
35+
dpkgGithubRelease('ubuntu-eoan')
36+
}
37+
}
38+
}
39+
}
40+
post {
41+
success {
42+
juxtapose event: 'success'
43+
sh 'figlet "SUCCESS"'
44+
}
45+
failure {
46+
juxtapose event: 'failure'
47+
sh 'figlet "FAILURE"'
48+
}
49+
}
50+
}

0 commit comments

Comments
 (0)