34 lines
913 B
Plaintext
34 lines
913 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 {
|
|
sh 'echo ${params.INPUT} > input_example.json'
|
|
sh 'python s444356.py'
|
|
}
|
|
}
|
|
}
|
|
} |