ium_444354/Jenkinsfile_artifact

23 lines
664 B
Plaintext
Raw Normal View History

2022-05-15 19:20:14 +02:00
pipeline {
agent {
2022-05-15 22:03:07 +02:00
docker {
image 'ksero/ium:pytorch'
2022-05-15 19:20:14 +02:00
}
2022-05-15 22:03:07 +02:00
}
2022-05-15 19:20:14 +02:00
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"
}
}
}
}