ium_444354/Jenkinsfile_artifact
Adrian Charkiewicz 16621c482b
All checks were successful
s444354-training/pipeline/head This commit looks good
s444354-evaluation/pipeline/head This commit looks good
new image: mlflow on dockerhub
2022-05-16 00:12:57 +02:00

23 lines
664 B
Plaintext

pipeline {
agent {
docker {
image 'ksero/ium:mlflow'
}
}
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 'python3 ./predictArtifact.py'
}
}
}
}