-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
47 lines (46 loc) · 1.13 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
#!/usr/bin/env groovy
pipeline {
agent any
options {
disableConcurrentBuilds()
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '100'))
timestamps()
}
stages {
stage('Commit stage tests') {
steps {
checkout scm
sh './cd/01-verify-syntax.sh'
}
}
stage ('Tests') {
steps {
withEnv(['http_proxy=http://web-proxy:8080', 'https_proxy=http://web-proxy:8080']) {
timeout(time: 1, unit: 'HOURS') {
sh './cd/00-dependencies-user.sh'
sh './cd/03-kitchen-test-docker.sh'
}
}
}
}
stage ('Results') {
steps {
archive '*.yaml'
archive 'group_vars/*'
}
}
}
post {
always {
emailext body: '$DEFAULT_CONTENT',
recipientProviders: [
[$class: 'CulpritsRecipientProvider'],
[$class: 'DevelopersRecipientProvider'],
[$class: 'RequesterRecipientProvider']
],
replyTo: '$DEFAULT_REPLYTO',
subject: '$DEFAULT_SUBJECT',
to: '$DEFAULT_RECIPIENTS'
}
}
}