2023-05-10 13:21:18 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
dockerfile true
|
|
|
|
}
|
|
|
|
stages{
|
|
|
|
stage('Copy model') {
|
|
|
|
steps {
|
2023-05-10 13:38:45 +02:00
|
|
|
copyArtifacts(projectName: 's452662-training/master', selector: lastSuccessful(), flatten: true)
|
2023-05-10 13:21:18 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Archive metrics') {
|
|
|
|
steps{
|
2023-05-10 17:35:53 +02:00
|
|
|
script {
|
2023-05-10 17:09:16 +02:00
|
|
|
def containerId = sh(script: 'docker ps -l -q', returnStdout: true).trim()
|
|
|
|
sh "docker cp ${containerId}:/app/metrics.txt ."
|
2023-05-10 13:21:18 +02:00
|
|
|
archiveArtifacts 'metrics.txt'
|
2023-05-10 17:35:53 +02:00
|
|
|
} }
|
2023-05-10 13:21:18 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|