ium_444501/s444356.Jenkinsfile
2022-05-13 02:45:31 +02:00

36 lines
983 B
Plaintext

pipeline {
agent {
docker {
image 'zadanie'
args '-v /mlruns:/mlruns'
}
}
parameters {
string(
defaultValue: '{\\"inputs\\": [[0.51, 0.86], [0.79, 0.79], [0.74, 0.77], [0.66, 0.73], [0.79, 0.47]]}',
description: 'Input example',
name: 'INPUT'
)
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
stage('Copy artifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's444356-training/master', selector: buildParameter('BUILD_SELECTOR')
}
}
stage('Prediction') {
steps {
withEnv(["INPUT=${params.INPUT}"]) {
sh 'echo $INPUT > input_example.json'
}
sh 'python s444356.py'
}
}
}
}