2022-05-11 18:51:12 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
2022-05-11 18:56:36 +02:00
|
|
|
docker {
|
|
|
|
image 'maciejczajka'
|
2022-05-11 18:51:12 +02:00
|
|
|
}
|
|
|
|
}
|
2022-05-11 19:33:00 +02:00
|
|
|
parameters {
|
|
|
|
string(
|
|
|
|
defaultValue: 'input_example.json',
|
|
|
|
description: 'Input file name',
|
|
|
|
name: 'INPUT',
|
|
|
|
trim: false
|
|
|
|
)
|
|
|
|
}
|
2022-05-11 18:51:12 +02:00
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Script') {
|
|
|
|
steps {
|
2022-05-11 20:05:49 +02:00
|
|
|
copyArtifacts projectName: 's444409-training/main', selector: lastSuccessful()
|
2022-05-11 19:34:54 +02:00
|
|
|
sh 'python3 ./predict.py $INPUT'
|
2022-05-11 18:51:12 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|