23 lines
667 B
Plaintext
23 lines
667 B
Plaintext
|
pipeline {
|
||
|
agent {
|
||
|
dockerfile {
|
||
|
args '-v /mlruns:/mlruns'
|
||
|
}
|
||
|
}
|
||
|
parameters {
|
||
|
buildSelector(
|
||
|
defaultSelector: lastSuccessful(),
|
||
|
description: 'select build from which to copy artifacts',
|
||
|
name: 'BUILD_SELECTOR'
|
||
|
)
|
||
|
}
|
||
|
stages {
|
||
|
stage('Copy artifacts') {
|
||
|
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 ./predictArtifact.py"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|