-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
38 lines (35 loc) · 1.27 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
pipeline {
agent {label "mhadev && linux"}
stages {
stage("create debian packages") {
steps {
sh "./create_debian_packages"
stash name: "deb", includes: 'output/*/*.deb'
}
}
stage("debian packages for apt") {
agent {label "aptly"}
steps {
// receive all created deb packages from build
unstash "deb"
archiveArtifacts "output/*/*.deb"
// Copies the new debs to the stash of existing debs,
sh "BRANCH_NAME=master make SUPPLY_DIR=output/ PROJECT=hoertech-aptsource"
build job: "/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: '[email protected]',
subject: "Failed Pipeline: ${currentBuild.fullDisplayName}",
body: "Something is wrong with ${env.BUILD_URL}"
}
}
}