ium_487187/JenkinsfileEvaluate

43 lines
1.2 KiB
Plaintext
Raw Normal View History

2023-05-10 17:30:54 +02:00
pipeline {
agent {
docker {
image 'python:3.11'
args '-v /root/.cache:/root/.cache -u root'
}
}
2023-05-10 18:59:28 +02:00
// parameters {
// buildSelector(name: 'BUILD_NUMBER', description: 'Wybierz numer buildu', defaultSelector: lastSuccessful())
// }
2023-05-10 17:30:54 +02:00
stages {
stage('Pobierz dane') {
steps {
script {
copyArtifacts(projectName: 's487187-create-dataset', fingerprintArtifacts: true)
}
}
}
stage('Pobierz model') {
steps {
2023-05-10 18:59:28 +02:00
copyArtifacts(projectName: 's487187-training/master', selector: lastSuccessful()) //specific("${params.BUILD_NUMBER}")
2023-05-10 17:30:54 +02:00
}
}
2023-05-10 18:21:33 +02:00
stage('Przygotowanie') {
steps {
sh 'pip install pandas tensorflow scikit-learn matplotlib'
}
}
2023-05-10 17:30:54 +02:00
stage('Ewaluuj model') {
steps {
script {
sh "python3 evaluate.py"
}
}
}
stage('Zarchiwizuj wyniki') {
steps {
archiveArtifacts artifacts: 'metrics.txt,plot.png', fingerprint: true
}
}
}
}