forked from dma-ais/AisLib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
42 lines (37 loc) · 1.12 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
pipeline {
agent any
tools {
maven 'M3.3.9'
}
triggers {
pollSCM('H * * * *')
}
stages {
stage('checkout') {
steps {
checkout scm
}
}
stage('build') {
steps {
withMaven() {
sh 'mvn -e -DincludeSrcJavadocs clean source:jar install'
}
}
post {
success {
sh 'curl --data "build=true" -X POST https://registry.hub.docker.com/u/dmadk/ais-store-cli/trigger/a995ad1e-4a4c-11e4-a6f5-dafbef59e66b/'
sh 'curl --data "build=true" -X POST https://registry.hub.docker.com/u/dmadk/ais-filedump/trigger/f0eb0638-6378-11e4-aea0-d22c3a4d29af/'
}
}
}
}
post {
failure {
// notify users when the Pipeline fails
mail to: 'rmj@dma.dk, jtj@dma.dk, steen@lundogbendsen.dk',
subject: "Failed Pipeline: ${currentBuild.fullDisplayName}",
body: "Something is wrong with ${env.BUILD_URL}"
}
}
}