2024-04-19 11:40:54 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Clone repository') {
|
|
|
|
steps {
|
|
|
|
checkout scm
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Copy artifacts') {
|
|
|
|
agent {
|
|
|
|
dockerfile {
|
|
|
|
filename 'Dockerfile'
|
|
|
|
reuseNode true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
2024-04-19 11:48:13 +02:00
|
|
|
copyArtifacts(projectName: 's464863-training/main', filter: 'models/model.pth', selector: lastSuccessful())
|
|
|
|
copyArtifacts(projectName: 'z-s464863-create-dataset', filter: 'datasets/test.csv', selector: lastSuccessful())
|
2024-04-19 11:40:54 +02:00
|
|
|
copyArtifacts(projectName: 's464863-evaluation/main', filter: 'metrics.csv', selector: lastSuccessful(), optional: true)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Evaluate model') {
|
|
|
|
agent {
|
|
|
|
dockerfile {
|
|
|
|
filename 'Dockerfile'
|
|
|
|
reuseNode true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
|
|
|
sh "chmod +x ./predict.py"
|
|
|
|
sh "python3 ./predict.py"
|
|
|
|
archiveArtifacts artifacts: 'predictions.csv, metrics.csv', onlyIfSuccessful: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|