ium_444417/lab8/Jenkinsfile.artifact

23 lines
660 B
Plaintext
Raw Normal View History

2022-05-15 12:45:33 +02:00
pipeline {
agent {
dockerfile {
args '-v /mlruns:/mlruns'
}
}
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
stage('Stage') {
steps {
copyArtifacts filter: 'mlruns.tar.gz', projectName: 's449288-training/master', selector: buildParameter('BUILD_SELECTOR')
sh 'mkdir -p mlrunsArtifact && tar xzf mlruns.tar.gz -C mlrunsArtifact --strip-components 1'
sh "python lab8/predictArtifact.py"
}
}
}
}