File tree Expand file tree Collapse file tree 2 files changed +100
-0
lines changed Expand file tree Collapse file tree 2 files changed +100
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments