29 lines
510 B
Plaintext
29 lines
510 B
Plaintext
|
pipeline {
|
||
|
agent {
|
||
|
dockerfile true
|
||
|
}
|
||
|
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'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|