-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile.mint19
50 lines (49 loc) · 1.01 KB
/
Jenkinsfile.mint19
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
pipeline {
options {
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
}
agent {
label 'dpkg'
}
stages {
stage('Prepare') {
steps {
ansiColor('xterm') {
sh 'rm -rf sign'
sh 'mkdir -p sign'
dir(path: 'sign') {
git(url: "${RPM_SIGN_GIT_REPO}", credentialsId: "${RPM_SIGN_CREDENTIALS_ID}")
sh 'chmod 600 .gnupg/*'
}
}
}
}
stage('Build') {
steps {
ansiColor('xterm') {
sh './build mint 19-rust'
}
}
}
stage('Publish') {
steps {
script {
def Dpkg = readJSON file: 'dpkg.json'
archiveArtifacts(artifacts: "${Dpkg.PACKAGE}*.*", caseSensitive: true, onlyIfSuccessful: true)
dpkgGithubRelease('mint19')
}
}
}
}
post {
success {
juxtapose event: 'success'
sh 'figlet "SUCCESS"'
}
failure {
juxtapose event: 'failure'
sh 'figlet "FAILURE"'
}
}
}