forked from tokibito/django-example-todo
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjenkinsfile
More file actions
30 lines (28 loc) · 722 Bytes
/
jenkinsfile
File metadata and controls
30 lines (28 loc) · 722 Bytes
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
pipeline {
agent any
parameters {
string(name: 'BRANCH_NAME', defaultValue: 'master', description: 'Specific Branch')
}
stages {
stage("Get Code") {
steps {
git branch: params.BRANCH_NAME, url: 'https://github.com/atthaboon/django-example-todo.git'
}
}
stage("Install library") {
steps {
bat "pip install -r requirements.txt"
}
}
stage("Unit test") {
steps {
bat("python tests/TestNumber.py")
}
post {
always {
junit "test-reports/*.xml"
}
}
}
}
}