2022-05-15 13:24:08 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
2022-05-15 13:38:40 +02:00
|
|
|
dockerfile {
|
|
|
|
filename 'Dockerfile'
|
|
|
|
args '-v /mlruns:/mlruns'
|
|
|
|
}
|
2022-05-15 13:24:08 +02:00
|
|
|
}
|
|
|
|
parameters {
|
|
|
|
string(
|
|
|
|
defaultValue: 'input_example.json',
|
|
|
|
description: 'Input file name',
|
|
|
|
name: 'INPUT_FILE_NAME',
|
|
|
|
trim: false
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Stage 1') {
|
|
|
|
steps {
|
|
|
|
echo 'Hello world!'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Prediction') {
|
|
|
|
steps {
|
|
|
|
sh 'python3 predict_registry.py $INPUT_FILE_NAME'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|