-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
36 lines (31 loc) · 942 Bytes
/
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
pipeline {
agent any
tools {
maven 'M3.3.9'
}
triggers {
pollSCM('H/5 * * * *')
}
stages {
stage('build') {
steps {
withMaven(options: [junitPublisher(ignoreAttachments: false), artifactsPublisher()]) {
sh 'mvn -e install'
}
}
post {
success {
sh 'curl -H "Content-Type: application/json" --data "{build: true}" -X POST https://registry.hub.docker.com/u/dmadk/tiler-service/trigger/da192d9c-854f-43b0-acfb-d19ec80cedc6/'
}
}
}
}
post {
failure {
// notify users when the Pipeline fails
mail to: '[email protected]',
subject: "Failed Pipeline: ${currentBuild.fullDisplayName}",
body: "Something is wrong with ${env.BUILD_URL}"
}
}
}