-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJenkinsfile
50 lines (50 loc) · 1.44 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
46
47
48
49
50
pipeline {
agent any
triggers {
githubPush()
pollSCM('H H * * *')
}
environment {
MAIL_RECIPIENTS = 'dev+tests-reports@wazo.community'
}
options {
skipStagesAfterUnstable()
timestamps()
buildDiscarder(logRotator(numToKeepStr: '10'))
}
stages {
stage('Debian build and deploy') {
steps {
build job: 'build-package-no-arch', parameters: [
string(name: 'PACKAGE', value: "${JOB_NAME}"),
]
}
}
stage('Docker build confd-db') {
steps {
build job: 'build-docker', parameters: [
string(name: 'GIT_URL', value: 'https://github.com/wazo-platform/xivo-manage-db.git'),
string(name: 'IMAGE', value: 'wazoplatform/wazo-confd-db'),
booleanParam(name: 'DOCKER_CACHE', value: false),
]
}
}
stage('Docker build confd-db-test') {
steps {
build job: 'build-docker', parameters: [
string(name: 'GIT_URL', value: 'https://github.com/wazo-platform/xivo-manage-db.git'),
string(name: 'IMAGE', value: 'wazoplatform/wazo-confd-db-test'),
string(name: 'DOCKERFILE', value: 'contribs/docker/wazo-confd-db-test/Dockerfile'),
]
}
}
}
post {
failure {
emailext to: "${MAIL_RECIPIENTS}", subject: '${DEFAULT_SUBJECT}', body: '${DEFAULT_CONTENT}'
}
fixed {
emailext to: "${MAIL_RECIPIENTS}", subject: '${DEFAULT_SUBJECT}', body: '${DEFAULT_CONTENT}'
}
}
}