ium_444354/Jenkinsfile_artifact
Adrian Charkiewicz 2fa5f88c56
Some checks failed
s444354-training/pipeline/head There was a failure building this commit
myruns
2022-05-15 22:03:07 +02:00

23 lines
664 B
Plaintext

pipeline {
agent {
docker {
image 'ksero/ium:pytorch'
}
}
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"
}
}
}
}