ium_487187/JenkinsfileDL

37 lines
1010 B
Plaintext
Raw Normal View History

2023-05-10 15:11:42 +02:00
pipeline {
agent {
docker {
image 'python:3.11'
args '-v /root/.cache:/root/.cache'
2023-05-10 16:51:23 +02:00
script {
// sh 'python3 train.py ${params.EPOCHS}'
sh 'pip install pandas && tail -f /dev/null'
}
2023-05-10 15:11:42 +02:00
}
}
parameters {
2023-05-10 15:36:16 +02:00
string(name: 'EPOCHS', defaultValue: '10', description: 'Liczba Epok')
2023-05-10 15:11:42 +02:00
}
stages {
stage('Pobierz dane') {
steps {
script {
2023-05-10 16:46:45 +02:00
copyArtifacts(projectName: 's487187-create-dataset', fingerprintArtifacts: true)
2023-05-10 15:11:42 +02:00
}
}
}
stage('Trenuj model') {
steps {
script {
2023-05-10 16:30:13 +02:00
// sh 'python3 train.py ${params.EPOCHS}'
sh 'python3 train.py'
2023-05-10 15:11:42 +02:00
}
}
}
stage('Zarchiwizuj model') {
steps {
archiveArtifacts artifacts: 'model.h5', fingerprint: true
}
}
}
}