ium_487187/JenkinsfileDL
Jakub Zaręba f7d99afe2f ds
2023-05-10 17:04:28 +02:00

38 lines
990 B
Plaintext

pipeline {
agent {
docker {
image 'python:3.11'
args '-v /root/.cache:/root/.cache -u root'
}
}
parameters {
string(name: 'EPOCHS', defaultValue: '10', description: 'Liczba Epok')
}
stages {
stage('Preparation') {
steps {
sh 'pip install pandas tensorflow'
}
}
stage('Pobierz dane') {
steps {
script {
copyArtifacts(projectName: 's487187-create-dataset', fingerprintArtifacts: true)
}
}
}
stage('Trenuj model') {
steps {
script {
// sh "python3 train.py --epochs $EPOCHS"
sh "python3 train.py"
}
}
}
stage('Zarchiwizuj model') {
steps {
archiveArtifacts artifacts: 'model.h5', fingerprint: true
}
}
}
}