-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathJenkinsfile
43 lines (40 loc) · 1.03 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
//This is the Jenkinsfile for the excel-paser.
pipeline {
agent any
options {
skipDefaultCheckout(true)
}
stages {
stage('Git') {
steps {
echo '> Checking out the Git version control ...'
checkout scm
}
}
stage('Build') {
steps {
echo '> Building the Docker images and starting the docker containers ...'
sh 'docker-compose up'
}
post {
failure {
echo 'This build has failed. See logs for details.'
}
}
}
stage('Testing') {
steps {
echo '> Running unit testing ...'
sh 'docker-compose exec app python manage.py test '
}
}
post {
failure {
echo 'This test has failed. See logs for details.'
}
success {
echo 'Test passed'
}
}
}
}