-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
62 lines (57 loc) · 2.11 KB
/
Copy pathJenkinsfile
File metadata and controls
62 lines (57 loc) · 2.11 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
// This file is part of hoertech-openmha-keyring
// Copyright © 2020 HörTech gGmbH
// Copyright © 2022 2025 Hörzentrum Oldenburg gGmbH
pipeline {
agent {label "pipeline"}
stages {
stage("build") {
agent {
docker {
image "hoertech/docker-buildenv:mha_x86_64-linux-gcc-13"
label "docker_x86_64"
alwaysPull true
args "-v /home/u:/home/u --hostname docker"
}
}
steps {
sh 'mhamakedeb hoertech-openmha-keyring.csv $(cat version) all'
stash name: "deb", includes: '*.deb'
}
}
stage("store debian packages for apt") {
agent {label "aptly"}
steps {
// receive all deb packages from openmha build
unstash "deb"
archiveArtifacts "*.deb"
// Publishing the deb for these systems:
sh "mkdir -p deb/focal"
sh "ln *.deb deb/focal"
sh "mkdir -p deb/jammy"
sh "ln *.deb deb/jammy"
sh "mkdir -p deb/noble"
sh "ln *.deb deb/noble"
sh "mkdir -p deb/bullseye"
sh "ln *.deb deb/bullseye"
sh "mkdir -p deb/buster"
sh "ln *.deb deb/buster"
// Copies the new debs to the stash of existing debs,
sh "BRANCH_NAME=master make storage"
build job: "/Packaging/hoertech-aptly/master",
quietPeriod: 300,
wait: false
}
}
}
// Email notification on failed build taken from
// https://jenkins.io/doc/pipeline/tour/post/
// multiple recipients are comma-separated:
// https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#-mail-%20mail
post {
failure {
mail to: 'herzke@hz-ol.de',
subject: "Failed Pipeline: ${currentBuild.fullDisplayName}",
body: "Something is wrong with ${env.BUILD_URL}"
}
}
}