-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathJenkinsfile
36 lines (36 loc) · 940 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
environment {
MLFLOW_TRACKING_URL = 'http://mlflow:5000'
}
stages {
stage('Install Dependencies') {
steps {
echo 'Starting Build'
sh 'mkdir -p python/data/raw/'
sh 'pip3 install -r requirements.txt'
}
}
stage("Build"){
steps {
dir("python"){
sh 'dvc repro model.pkl.dvc'
}
}
}
stage('Evaluate/Test') {
steps {
dir("python"){
sh 'python3 test/test.py'
}
}
}
stage('Deploy') {
steps {
dir("python") {
sh 'curl --request POST --data-binary "@data/decision_tree/model.pkl" http://model:5005/replacemodel'
}
}
}
}
}