ium_452662/Jenkinsfile_evaluate

20 lines
548 B
Plaintext

pipeline {
agent {
dockerfile true
}
stages{
stage('Copy model') {
steps {
copyArtifacts(projectName: 's452662-training/master', selector: lastSuccessful(), flatten: true)
}
}
stage('Archive metrics') {
steps{
script {
def containerId = sh(script: 'docker ps -l -q', returnStdout: true).trim()
sh "docker cp ${containerId}:/app/metrics.txt ."
archiveArtifacts 'metrics.txt'
} }
}
}
}