Jenkinsfile for 6_2 evaluating

This commit is contained in:
Grzegorz Gapiński 2023-05-12 23:51:42 +02:00
parent ce5ede88f6
commit 8cde33457f

35
Jenkinsfile6_2 Normal file
View File

@ -0,0 +1,35 @@
pipeline {
agent {
docker {
image 'python:3.11'
args '-v /root/.cache:/root/.cache -u root -v /tmp/mlruns:/tmp/mlruns -v /mlruns:/mlruns'
}
}
stages {
stage('Przygotowanie) {
steps {
sh 'pip install pandas tensorflow numpy scikit-learn mlflow'
}
}
stage('Zaladuj dane i model') {
steps {
script {
copyArtifacts(projectName: 's407409-training', fingerprintArtifacts: true)
}
}
}
stage('Dokonaj predykcji') {
steps {
script {
sh "python3 model_test.py"
}
}
}
stage('Zarchiwizuj wyniki') {
steps {
archiveArtifacts artifacts: 'election_predictions.csv', fingerprint: true
}
}
}
}