-
Notifications
You must be signed in to change notification settings - Fork 5
/
Jenkinsfile
45 lines (45 loc) · 1.8 KB
/
Jenkinsfile
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
pipeline {
agent none
parameters {
string(name: 'BASE_VERSION', defaultValue: '1.0', description: 'From https://github.com/dernasherbrezon/sdr-modem/actions')
string(name: 'BUILD_NUMBER', defaultValue: '77', description: 'From https://github.com/dernasherbrezon/sdr-modem/actions')
}
environment {
GPG = credentials("GPG")
DEBEMAIL = '[email protected]'
DEBFULLNAME = 'r2cloud'
}
stages {
stage('Package and deploy') {
matrix {
axes {
axis {
name 'OS_CODENAME'
values 'bullseye', 'stretch', 'buster', 'bookworm'
}
axis {
name 'CPU'
values 'nocpuspecific'
}
}
agent {
label "${OS_CODENAME}"
}
stages {
stage('Checkout') {
steps {
git(url: '[email protected]:dernasherbrezon/sdr-modem.git', branch: "${OS_CODENAME}", credentialsId: '5c8b3e93-0551-475c-9e54-1266242c8ff5', changelog: false)
}
}
stage('build and deploy') {
steps {
sh 'echo $GPG_PSW | /usr/lib/gnupg2/gpg-preset-passphrase -c C4646FB23638AE9010EB1F7F37A0505CF4C5B746'
sh 'echo $GPG_PSW | /usr/lib/gnupg2/gpg-preset-passphrase -c 9B66E29FF6DDAD62FA3F2570E02775B6EFAF6609'
sh "bash ./build_and_deploy.sh ${CPU} ${OS_CODENAME} ${params.BASE_VERSION} ${params.BUILD_NUMBER} ${GPG_USR}"
}
}
}
}
}
}
}