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 {
2022-05-16 00:12:57 +02:00
image 'ksero/ium:mlflow'
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'
2022-05-15 22:18:37 +02:00
sh 'python3 ./predictArtifact.py'
2022-05-15 19:20:14 +02:00
}
}
}
}